Eidolon
Public Member Functions | Public Attributes | List of all members
DicomDataset Class Reference

Inherits object.

Collaboration diagram for DicomDataset:
Collaboration graph

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
 

Detailed Description

Represents all the loaded Dicom information for files found in a given root directory. Changing breaks .pickle files.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  rootdir = '.' 
)

Member Function Documentation

◆ __str__()

def __str__ (   self)

◆ addDataset()

def addDataset (   self,
  dds 
)
Merge the dataset `dds' into this one, assuming both have the same root directory.
Here is the call graph for this function:

◆ findSeries()

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.
Here is the call graph for this function:

◆ getDatasetMap()

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.
Here is the caller graph for this function:

◆ getSeries()

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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadDataset()

def loadDataset (   self,
  filename 
)
Load data into the dataset from the basic config file `filename' which was created with storeDataset().

◆ storeDataset()

def storeDataset (   self,
  filename 
)
Store the dataset dictionary to the basic config file `filename'.
Here is the call graph for this function:

Member Data Documentation

◆ rootdir

rootdir

◆ series

series

The documentation for this class was generated from the following file: