IMP Reference Guide
2.8.0
The Integrative Modeling Platform
|
A class for reading stat files. More...
Inherits object.
A class for reading stat files.
Public Member Functions | |
def | get_fields |
Get the desired field names, and return a dictionary. More... | |
def IMP.pmi.output.ProcessOutput.get_fields | ( | self, | |
fields, | |||
filtertuple = None , |
|||
filterout = None , |
|||
get_every = 1 |
|||
) |
Get the desired field names, and return a dictionary.
Namely, "fields" are the queried keys in the stat file (eg. ["Total_Score",...]) The returned data structure is a dictionary, where each key is a field and the value is the time series (ie, frame ordered series) of that field (ie, {"Total_Score":[Score_0,Score_1,Score_2,Score_3,...],....} )
fields | (list of strings) queried keys in the stat file (eg. "Total_Score"....) |
filterout | specify if you want to "grep" out something from the file, so that it is faster |
filtertuple | a tuple that contains ("TheKeyToBeFiltered",relationship,value) where relationship = "<", "==", or ">" |
get_every | only read every Nth line from the file |