Package xdp :: Module transformation :: Class Transformation
[show private | hide private]
[frames | no frames]

Class Transformation

Known Subclasses:
CleanTransform, LintTransform, RebinTransform, TrimTransform

Transformation objects are used to apply arbitrary transformations to xdp.Data objects, resulting in new xdp.Data objects which reflect those changes.

The Transformation class does not define a constructor or any actual transformation. It is intended to act as the parent class for classes implementing real transformations.

Any columns not modified by a transformation are not included in the resulting object.

Transformation objects are applied to xdp.Data objects using Python's function-call operator. In other words, call the transformation object as though it were a function which takes one argument, an xdp.Data object.
Method Summary
  __call__(self, data)
Apply this transformation to the xdp.Data object 'data'.
  apply(self, data)
Virtual method which implements the transformation and returns a new data object.

Method Details

__call__(self, data)
(Call operator)

Apply this transformation to the xdp.Data object 'data'.

apply(self, data)

Virtual method which implements the transformation and returns a new data object.

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