Package schrodinger :: Package application :: Package desmond :: Package packages :: Module analysis :: Class GeomAnalyzerBase
[hide private]
[frames] | no frames]

Class GeomAnalyzerBase

object --+
         |
        GeomAnalyzerBase
Known Subclasses:

Base class of all geometry analyzer classes

All subclasses are expected to define two private methods:

Instance Methods [hide private]
 
_precalc(self, calc)
 
_postcalc(self, calc, pbc, fr)
 
__call__(self)

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

Static Methods [hide private]
list of combinations of GIDs or Positer
_get_sites(cms_model, xids)
This function takes a list of XIDs (AIDs or CenterOf objects) and turns them into a list of sites (GIDs or Positer).
list of GIDs
_sites2gids(calc, sites, gid_offset)
This function returns GIDs for the provided sites.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_precalc(self, calc)

 
Parameters:

_postcalc(self, calc, pbc, fr)

 
Parameters:

_get_sites(cms_model, xids)
Static Method

 

This function takes a list of XIDs (AIDs or CenterOf objects) and turns them into a list of sites (GIDs or Positer).

Parameters:
  • xids (int, Com, Coc, Centroid)
Returns: list of combinations of GIDs or Positer

_sites2gids(calc, sites, gid_offset)
Static Method

 

This function returns GIDs for the provided sites. If Positer type is detected, a new GIDs is registered.

Parameters:
  • gid_offset (int) - number of sites/GIDs in the msys_model, the GIDs generated for all the particles are being offset by this value, which is equal to the total number of GIDs.
  • particles (a list that contains either int and/or Positer)
  • calc (GeomCalc)
Returns: list of GIDs