Package schrodinger :: Package application :: Package phase :: Module phase_markers :: Class WorkspaceSite
[hide private]
[frames] | no frames]

Class WorkspaceSite

         object --+    
                  |    
infra.phase.PhpSite --+
                      |
                     WorkspaceSite

This is special class we use when adding sites manually in workspace. It allows us to identify custom sites using isinstance method.

Instance Methods [hide private]
 
__init__(self)
__init__(PhpSite self) -> PhpSite __init__(PhpSite self, size_t a_number) -> PhpSite __init__(PhpSite self, std::string const & a_type) -> PhpSite __init__(PhpSite self, PhpSite arg2) -> PhpSite
list
coordinates(self, use_offset=False)
Returns site coordinates if use_offset is False.

Inherited from infra.phase.PhpSite: __eq__, __ne__, __repr__, __swig_destroy__, calculateSimilarity, distance, getProjectedOnly, getSiteName, getSiteNumber, getSiteSimilarity, getSiteStatus, getSiteType, getSiteTypeChar, getXCoord, getYCoord, getZCoord, setCoordinates, setProjectedOnly, setProjectedOnlyOff, setProjectedOnlyOn, setSiteNumber, setSiteSimilarity, setSiteStatusOff, setSiteStatusOn, setSiteType, setSiteTypeChar, setStatus, setXCoord, setYCoord, setZCoord

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from infra.phase.PhpSite: SiteStatusOff, SiteStatusOn

Properties [hide private]

Inherited from infra.phase.PhpSite: thisown

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

__init__(PhpSite self) -> PhpSite __init__(PhpSite self, size_t a_number) -> PhpSite __init__(PhpSite self, std::string const & a_type) -> PhpSite __init__(PhpSite self, PhpSite arg2) -> PhpSite

Overrides: object.__init__
(inherited documentation)

coordinates(self, use_offset=False)

 

Returns site coordinates if use_offset is False. If use_offset is True z-coordinate is shifted by the constant value. This is useful when finding coordinates of projected points.

Parameters:
  • use_offset (bool) - if True shift z-coordinate by constant value
Returns: list
list of site coordinates