Package xdp :: Module xafs :: Class XafsData
[show private | hide private]
[frames | no frames]

Class XafsData

Data --+
       |
      XafsData


XafsData objects represent XAFS experiment data from a file.

Attributes:
    _path = full path and name of this data's source file
    _file = name of this data's source file
    _shift = relative energy shift of this data, or None
    _header = header for this data's source file, or None

Method Summary
  __init__(self, path, mapping)
Create a new XafsData object, optionally loading the XAFS experiment data from the file 'path' and remapping it using 'mapping'.
    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.

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 a new XafsData object, optionally loading the XAFS experiment data from the file 'path' and remapping it using 'mapping'.

If the 'path' keyword argument is specified, the 'mapping' keyword argument must also be specified.
Overrides:
xdp.dataset.Data.__init__

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