Package xdp :: Module meansum :: Class ExperimentData
[show private | hide private]
[frames | no frames]

Class ExperimentData

Data --+
       |
      ExperimentData


Experiment data loaded from a file for summing or averaging.
Method Summary
  __init__(self, path, mapping)
Create an empty ExperimentData object or make one by loading the experiment data from a file.
    Inherited from Data
  __getattr__(self, name)
Allow columns to be accessed as attributes.
  __setattr__(self, name, value)
Allow columns to be set as attributes.
  add(self, name, vector)
Create a new column of data.
  addColumn(self, name, vector)
Create a new column of data.
list of strings columns(self)
Retrieve a list of the column names.
xdp.Data copy(self, deep)
Create a copy of this dataset.
any evaluate(self, expr)
Evaluate a Python expression using this dataset's column names
Numeric vector get(self, name)
Retrieve a column's data.
Numeric vector getColumn(self, name)
Retrieve a column's data.
list of strings getColumnNames(self)
Retrieve a list of the column names.
Numeric matrix getMatrix(self)
Construct a matrix out of this dataset.
bool has(self, name)
Check for the presence of a column.
bool hasColumn(self, name)
Check for the presence of a column.
  remove(self, name)
Remove a column.
  removeColumn(self, name)
Remove a column.
  rename(self, name, newName)
Rename a column.
  renameColumn(self, name, newName)
Rename a column.
  set(self, name, vector)
Assign data to a column.
  setColumn(self, name, vector)
Assign data to a column.

Instance Variable Summary
Sff, Xafs, Text, or None header: header of this dataset's source file
string _name: name of dataset's source file
string _path: full path and name of dataset's source file
float or None _shift: relative X-axis shift

Class Variable Summary
    Inherited from Data
compiled regular expression COLNAMES: used by Data.evaluate to match and replace the @X column names in expressions
compiled regular expression COLNUMS: used by Data.evaluate to match and replace the @X column numbers in expressions
dict EVAL_NAMESPACE: used by Data.evaluate as the default namespace for evaluating Python expressions

Method Details

__init__(self, path='', mapping=None)
(Constructor)

Create an empty ExperimentData object or make one by loading the experiment data from a file.
Parameters:
path - file to load
           (type=string)
mapping - mapping to apply to loaded dataset
           (type=Mapping)
Overrides:
xdp.dataset.Data.__init__

Note: If the file being loaded does not have X and Y columns, the appropriate mapping must be supplied.


Instance Variable Details

header

header of this dataset's source file
Type:
Sff, Xafs, Text, or None

_name

name of dataset's source file
Type:
string

_path

full path and name of dataset's source file
Type:
string

_shift

relative X-axis shift
Type:
float or None

Generated by Epydoc 2.1 on Wed Jul 20 11:51:05 2005 http://epydoc.sf.net