IMP
2.2.1
The Integrative Modeling Platform
|
Statistics gathering and printing class for ISD gibbs sampling. More...
Public Member Functions | |
def | add_category |
creates a logging entry for a simulation substep of the gibbs sampler. More... | |
def | add_coordinates |
adds a placeholder for coordinates More... | |
def | add_entry |
add an entry for the statistics file More... | |
def | increment_counter |
increments the counter of category 'key' by 'value' steps. More... | |
def | update |
updates an entry and change its value to value | |
def | update_coordinates |
updates the coordinates of key:name entry. More... | |
def | write_stats |
Writes statistics to the stats file and writes/appends trajectories. More... | |
Also manages the restart file (TODO).
TODO: check if everything was updated nicely
Definition at line 23 of file Statistics.py.
def IMP.isd.Statistics.Statistics.add_category | ( | self, | |
name = None |
|||
) |
Each category has its own counter, initialized to zero. The global category does not need to be created, it's already created by the init method, and its key is 'global'.
Definition at line 87 of file Statistics.py.
def IMP.isd.Statistics.Statistics.add_coordinates | ( | self, | |
key, | |||
name, | |||
format = 'raw' , |
|||
append = True , |
|||
extension = 'pdb' , |
|||
hierarchies = None , |
|||
restraints = None |
|||
) |
Definition at line 150 of file Statistics.py.
def IMP.isd.Statistics.Statistics.add_entry | ( | self, | |
key, | |||
name = None , |
|||
entry = None |
|||
) |
Definition at line 108 of file Statistics.py.
def IMP.isd.Statistics.Statistics.increment_counter | ( | self, | |
key, | |||
value | |||
) |
Definition at line 187 of file Statistics.py.
def IMP.isd.Statistics.Statistics.update_coordinates | ( | self, | |
key, | |||
name, | |||
value = True |
|||
) |
Format should match with the format specified at init time (raw or rmf3) note that setting value to None is equivalent to not calling this function
Definition at line 175 of file Statistics.py.
def IMP.isd.Statistics.Statistics.write_stats | ( | self | ) |
Only does that if the global step matches the output rate. Trajectories are written more sparsely, see trajrate. Returns: True if data was written, False if not.
Definition at line 253 of file Statistics.py.