Moved hooke.libhookecurve -> hooke.curve and rewrote HookeCurve -> Curve class.
authorW. Trevor King <wking@drexel.edu>
Sat, 8 May 2010 11:20:02 +0000 (07:20 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 8 May 2010 11:20:02 +0000 (07:20 -0400)
commitba4daa53462d81c9302a91d959612d534efc6be7
tree9bd1ac0800ef19eceefb469944ff25b6477432aa
parent08355dc091135282e5a7151b2685cfbbe1298858
Moved hooke.libhookecurve -> hooke.curve and rewrote HookeCurve -> Curve class.

New class Data subclasses numpy.ndarray for faster data handling.

Changes:
  * hooke.libhookecurve.PlotObject -> hooke.ui.gui.plot.PlotObject
  * hooke.libhookecurve.Driver -> hooke.driver.Driver
  * Raise new exception hooke.driver.NotRecognized if no driver
    matches (vs. old print message and return false).
  * Curve stores data in a list (vs. old dict).  Often data order
    is important.  The names that used to key the data dict can
    now go into Data.info['name'].
  * HookeCurve.fits -> Curve.info['fits']
  * HookeCurve.plots is GUI data, but if the UI needs it, it should be
    stored in Curve.info['plots']
  * Since Curve.data is an array,
    HookeCurve.add_data() -> Curve.data.append(),
    HookeCurve.delete_data() -> Curve.data.remove(), and
    HookeCurve.set_data() -> Curve.data[i] = data
27 files changed:
hooke/curve.py [new file with mode: 0644]
hooke/driver/__init__.py
hooke/driver/csvdriver.py
hooke/driver/hdf5.py
hooke/driver/hemingclamp.py
hooke/driver/jpk.py
hooke/driver/mcs.py
hooke/driver/mfp1dexport.py
hooke/driver/mfp3d.py
hooke/driver/picoforce.py
hooke/driver/picoforcealt.py
hooke/driver/tutorialdriver.py
hooke/formatter.py
hooke/hooke_cli.py
hooke/libhookecurve.py [deleted file]
hooke/playlist.py
hooke/plugin/cut.py
hooke/plugin/flatfilts-rolf.py
hooke/plugin/flatfilts.py
hooke/plugin/generalclamp.py
hooke/plugin/macro.py
hooke/plugin/massanalysis.py
hooke/plugin/pcluster.py
hooke/plugin/procplots.py
hooke/plugin/superimpose.py
hooke/plugin/tutorial.py
hooke/ui/gui/plot.py [new file with mode: 0644]