Package SloppyCell :: Module Collections :: Class ExperimentCollection
[hide private]

Class ExperimentCollection

source code

object --+    
         |    
      dict --+
             |
            ExperimentCollection


ExperimentCollection(experiment name list)

An ExperimentCollection unites a collection of experiments. For now, it's
most important function is to collect group the independent variables by
Calculation to avoid wasting computer effort redoing calculations.

Individual experiments can be accessed via dictionary-type indexing.

Instance Methods [hide private]
new empty dictionary

__init__(self, exptList=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
AddExperiment(self, expt)
LoadExperiments(experiment name list)
source code
dictionary

GetVarsByCalc()
Returns a dictionary of all the dependent and independent variables for all the calculations required to compare with the data in all the experiments.
source code
dictionary

GetData()
Returns a dictionary containing all the data for the experiments.
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, exptList=[])
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

AddExperiment(self, expt)

source code 

LoadExperiments(experiment name list)

Adds the experiments in the list to the collection

GetVarsByCalc()

source code 
Returns a dictionary of all the dependent and independent variables for 
all the calculations required to compare with the data in all the
experiments. The dictionary is of the form: 
 dictionary(calculation name) -> ordered list of unique independent
                                 variables

Returns:
dictionary

GetData()

source code 
Returns a dictionary containing all the data for the experiments. The
dictionary is of the form:
 dictionary[expt name][calc name][dependent vars][independent vars]
         = value.

Note that value may be an arbitrary object.

Returns:
dictionary