Eidolon
|
Inherits object.
Public Member Functions | |
def | __init__ (self, rootdir='.') |
def | getSeries (self, seriesID, createNew=False) |
def | findSeries (self, desc_or_func) |
def | getDatasetMap (self) |
def | storeDataset (self, filename) |
def | loadDataset (self, filename) |
def | addDataset (self, dds) |
def | __str__ (self) |
Public Attributes | |
series | |
rootdir | |
Represents all the loaded Dicom information for files found in a given root directory. Changing breaks .pickle files.
def __init__ | ( | self, | |
rootdir = '.' |
|||
) |
def __str__ | ( | self | ) |
def addDataset | ( | self, | |
dds | |||
) |
Merge the dataset `dds' into this one, assuming both have the same root directory.
def findSeries | ( | self, | |
desc_or_func | |||
) |
Return the series which matches the criterion `desc_or_func'. If this is a string then return the first series which contains it in its description. If not a string, it's assumed to be a callable returning True when the desired series object is given as the sole argument.
def getDatasetMap | ( | self | ) |
Returns a dictionary containing the condensed information for this dataset. The `rootdir' value is keyed to itself, and there is a list of series IDs keyed to `series'. Each series object in self.series is also keyed to its series ID in the result.
def getSeries | ( | self, | |
seriesID, | |||
createNew = False |
|||
) |
Get the series with the given ID `seriesID'. If no such series is present, create a new series object if `createNew' is True and return that, otherwise return None.
def loadDataset | ( | self, | |
filename | |||
) |
Load data into the dataset from the basic config file `filename' which was created with storeDataset().
def storeDataset | ( | self, | |
filename | |||
) |
Store the dataset dictionary to the basic config file `filename'.
rootdir |
series |