hooke.git
14 years agoBring hooke.plugin.tutorial up to date with Plugin/Command architecture.
W. Trevor King [Tue, 3 Aug 2010 15:18:54 +0000 (11:18 -0400)]
Bring hooke.plugin.tutorial up to date with Plugin/Command architecture.

14 years agoFix NoteIndexList.index implementation and add NoteIndexList.items
W. Trevor King [Tue, 3 Aug 2010 15:16:36 +0000 (11:16 -0400)]
Fix NoteIndexList.index implementation and add NoteIndexList.items

14 years agoAdd NoteIndexList.index() so other classes can avoid ._index
W. Trevor King [Tue, 3 Aug 2010 15:05:33 +0000 (11:05 -0400)]
Add NoteIndexList.index() so other classes can avoid ._index

14 years agoFix PointRequest and improve command line handling of selection and point requests.
W. Trevor King [Tue, 3 Aug 2010 15:04:52 +0000 (11:04 -0400)]
Fix PointRequest and improve command line handling of selection and point requests.

14 years agoFix run cleanup if the UI ends without clearing non-Hooke msgs from the Queue.
W. Trevor King [Tue, 3 Aug 2010 15:03:45 +0000 (11:03 -0400)]
Fix run cleanup if the UI ends without clearing non-Hooke msgs from the Queue.

If the UI closes before the last command finishes (e.g. if bin/hooke
is run in a pipe), there may be cruft (e.g. CommandExit instances)
left in the engine-to-UI queue before the Hooke instance that the
CommandEngine appends on closing.  The new implementation keeps
digging through the queue until it finds a Hooke instance, where the
old implementation only looked at the first message that came off the
queue.

Also added some useful debugging logs for UI<->Engine communication.

14 years agoOops. Fix "'." -> ".'" in dependency warning message.
W. Trevor King [Tue, 3 Aug 2010 12:32:07 +0000 (08:32 -0400)]
Oops.  Fix "'." -> ".'" in dependency warning message.

14 years agoAdd dependency checking to hooke.plugin.load_graph
W. Trevor King [Tue, 3 Aug 2010 12:09:18 +0000 (08:09 -0400)]
Add dependency checking to hooke.plugin.load_graph

14 years agoAdd multi-y TODO comment to gui.panel.plot
W. Trevor King [Tue, 3 Aug 2010 11:12:38 +0000 (07:12 -0400)]
Add multi-y TODO comment to gui.panel.plot

14 years agoUpdated README tutorial reference and troubleshooting steps.
W. Trevor King [Tue, 3 Aug 2010 11:03:37 +0000 (07:03 -0400)]
Updated README tutorial reference and troubleshooting steps.

14 years agoRemoved hooke/ui/gui/playlist.py, the last outdated .py file in .../gui/
W. Trevor King [Tue, 3 Aug 2010 10:54:38 +0000 (06:54 -0400)]
Removed hooke/ui/gui/playlist.py, the last outdated .py file in .../gui/

The remaining gui.* submods aren't all updated to the current
architecture, but there shouldn't be any more file removals necessary.

14 years agoConsolidated point-handling modules in hooke.ui.gui into gui.dialog.points
W. Trevor King [Tue, 3 Aug 2010 10:51:55 +0000 (06:51 -0400)]
Consolidated point-handling modules in hooke.ui.gui into gui.dialog.points

14 years agoRemove outdated TODO: comments from hooke.ui.gui
W. Trevor King [Tue, 3 Aug 2010 10:38:40 +0000 (06:38 -0400)]
Remove outdated TODO: comments from hooke.ui.gui

14 years agoFlesh out HookeFrame._on_set_selected_playlist with 'jump to playlist' call
W. Trevor King [Tue, 3 Aug 2010 01:29:57 +0000 (21:29 -0400)]
Flesh out HookeFrame._on_set_selected_playlist with 'jump to playlist' call

14 years agoDon't save non-string portions of *.info in playlist xml files
W. Trevor King [Tue, 3 Aug 2010 00:50:55 +0000 (20:50 -0400)]
Don't save non-string portions of *.info in playlist xml files

14 years agoRan update_copyright.py
W. Trevor King [Tue, 3 Aug 2010 00:10:15 +0000 (20:10 -0400)]
Ran update_copyright.py

14 years agoGrr. Uncomment authors & file lines un update_copyright.py again.
W. Trevor King [Tue, 3 Aug 2010 00:06:56 +0000 (20:06 -0400)]
Grr. Uncomment authors & file lines un update_copyright.py again.

14 years agoAlso escape quotes (") in minidom's _write_data.
W. Trevor King [Mon, 2 Aug 2010 23:35:09 +0000 (19:35 -0400)]
Also escape quotes (") in minidom's _write_data.

14 years agoAdjust hooke.playlist to allow spaces in .info keys.
W. Trevor King [Mon, 2 Aug 2010 17:48:39 +0000 (13:48 -0400)]
Adjust hooke.playlist to allow spaces in .info keys.

14 years agoAdd hooke.compat.minidom to fix Python's XML generation issue5752.
W. Trevor King [Mon, 2 Aug 2010 16:37:37 +0000 (12:37 -0400)]
Add hooke.compat.minidom to fix Python's XML generation issue5752.

xml.dom.minidom.Element.writexml doesn't escape some special
characters (e.g. '\n').  See
  http://bugs.python.org/issue5752

importing hooke.compat.minidom fixes this bug dynamically.

14 years agoUpdated gui.panel.note and simplified hooke.plugin.note.
W. Trevor King [Mon, 2 Aug 2010 14:56:10 +0000 (10:56 -0400)]
Updated gui.panel.note and simplified hooke.plugin.note.

Previous hooke.plugin.note had assumed curve.info['note'] was a list
of strings.  The current implementation is simpler (and class
agnostic) with get/set commands.

NotePanel now works as a UI to the current curve's .info['note'], but
it has exposed some issues with .info in Playlist.flatten().

Also removed some outdated binding cruft from gui/__init__.py (now
handled by the panels themselves) and an outdated _callback setting
from panel.commands (it's set in the base Panel.__init__()).

14 years agoUpdate the curve in ui.gui after a vclamp plugin command.
W. Trevor King [Mon, 2 Aug 2010 13:38:02 +0000 (09:38 -0400)]
Update the curve in ui.gui after a vclamp plugin command.

14 years agoDon't plot data blocks that are missing a selected x/y column
W. Trevor King [Mon, 2 Aug 2010 13:25:32 +0000 (09:25 -0400)]
Don't plot data blocks that are missing a selected x/y column

14 years agoRemove debugging printout from gui.panel.commands
W. Trevor King [Mon, 2 Aug 2010 13:25:05 +0000 (09:25 -0400)]
Remove debugging printout from gui.panel.commands

14 years agoRename _on_mouse_over -> _on_motion in panel.propertyeditor
W. Trevor King [Mon, 2 Aug 2010 13:22:04 +0000 (09:22 -0400)]
Rename _on_mouse_over -> _on_motion in panel.propertyeditor

14 years agoAdd help tooltips to commands in gui.panel.commands
W. Trevor King [Mon, 2 Aug 2010 13:14:57 +0000 (09:14 -0400)]
Add help tooltips to commands in gui.panel.commands

14 years agoAdded axes-selection choice widgets to gui.panel.plot's navbar.
W. Trevor King [Mon, 2 Aug 2010 01:47:43 +0000 (21:47 -0400)]
Added axes-selection choice widgets to gui.panel.plot's navbar.

14 years agoRemove LocalWords (accidental Emacs spellcheck) from hooke.driver.jpk
W. Trevor King [Sun, 1 Aug 2010 22:44:15 +0000 (18:44 -0400)]
Remove LocalWords (accidental Emacs spellcheck) from hooke.driver.jpk

14 years agoMake gui.panel.plot's toolbar optional & start generalizing axes selection
W. Trevor King [Sun, 1 Aug 2010 22:43:07 +0000 (18:43 -0400)]
Make gui.panel.plot's toolbar optional & start generalizing axes selection

14 years agogenrst calls xsltproc to generate gui_flow.svg.
W. Trevor King [Sun, 1 Aug 2010 20:51:20 +0000 (16:51 -0400)]
genrst calls xsltproc to generate gui_flow.svg.

Unfortunately, Sphinx doesn't seem to recognize that gui_flow.xml will
turn into gui_flow.svg after graph.xsl's transformation (but perhaps
I'm just doing something wrong?).  We work around that by running the
transformation and linking hacking.txt to the generated svg file
instead of the source xml.  Of course, this adds an additional build
dependency (xsltproc), but xslt processors should be common enough
that that's not a big deal.

The change was made in the scons cache file doc/.sconsrc-sphinx.
I also added the generated file (doc/img/gui_flow/gui_flow.svg) to
.hgignore.

14 years agoAdded note about GUI architecture to doc/hacking.txt + doc/img/gui_flow/.
W. Trevor King [Sun, 1 Aug 2010 20:32:57 +0000 (16:32 -0400)]
Added note about GUI architecture to doc/hacking.txt + doc/img/gui_flow/.

doc/img/gui_flow/
|-- gui_flow.xml              XML definition of the information-flow graph.
|-- graph.xsl                 XSLT translating gui_flow.xml -> gui_flow.svg
`-- math.sqrt.template.xsl    Template for calculating sqrt(x) in XSLT.

Periodically I get the hare-brained idea that I want to do something
with XSLT.  I'm not sure what I was thinking ;).  It's done now though,
and it seems a shame to waste it.

14 years agoUse 'hooke' log vs. print to output debugging messages in hooke.ui.gui
W. Trevor King [Sat, 31 Jul 2010 20:31:19 +0000 (16:31 -0400)]
Use 'hooke' log vs. print to output debugging messages in hooke.ui.gui

14 years agoAlso remove crufty old gui.plugin.plot
W. Trevor King [Sat, 31 Jul 2010 20:20:08 +0000 (16:20 -0400)]
Also remove crufty old gui.plugin.plot

14 years agoRemoved some old cruft from hooke/ui/gui/
W. Trevor King [Sat, 31 Jul 2010 20:15:11 +0000 (16:15 -0400)]
Removed some old cruft from hooke/ui/gui/

14 years agoMoved MemoDialog from hookepropertyeditor -> dialog.text.
W. Trevor King [Sat, 31 Jul 2010 20:11:53 +0000 (16:11 -0400)]
Moved MemoDialog from hookepropertyeditor -> dialog.text.

14 years agoMoved HookeScalarFormatter from formatter -> panel.plot.
W. Trevor King [Sat, 31 Jul 2010 20:10:03 +0000 (16:10 -0400)]
Moved HookeScalarFormatter from formatter -> panel.plot.

14 years agoMake hooke.config.HookeConfigParser's options case sensitive (vs. all lowercase)
W. Trevor King [Sat, 31 Jul 2010 19:23:55 +0000 (15:23 -0400)]
Make hooke.config.HookeConfigParser's options case sensitive (vs. all lowercase)

14 years agoprettyformat -> hooke.util.si, and 'plot SI format' option to GUI
W. Trevor King [Sat, 31 Jul 2010 19:13:49 +0000 (15:13 -0400)]
prettyformat -> hooke.util.si, and 'plot SI format' option to GUI

14 years agoSeveral changes while getting 'plot' panel working
W. Trevor King [Sat, 31 Jul 2010 17:27:54 +0000 (13:27 -0400)]
Several changes while getting 'plot' panel working

14 years agoUse RawConfigParser instead of SafeConfigParser as base class in hooke.config.
W. Trevor King [Sat, 31 Jul 2010 14:02:00 +0000 (10:02 -0400)]
Use RawConfigParser instead of SafeConfigParser as base class in hooke.config.

This allows us to use things like the upcomming
  plot x format = %.3g

14 years agoFixed curve/playlist choice argument handling in panel.propertyeditor2
W. Trevor King [Sat, 31 Jul 2010 12:36:29 +0000 (08:36 -0400)]
Fixed curve/playlist choice argument handling in panel.propertyeditor2

14 years agoFix postprocess_get_curve in the case that nothing in the playlist panel is selected
W. Trevor King [Sat, 31 Jul 2010 11:55:38 +0000 (07:55 -0400)]
Fix postprocess_get_curve in the case that nothing in the playlist panel is selected

14 years agoDon't expand plugins in CommandsPanel by deefault (too much space)
W. Trevor King [Sat, 31 Jul 2010 11:49:04 +0000 (07:49 -0400)]
Don't expand plugins in CommandsPanel by deefault (too much space)

14 years agoRework update_copyright and short_license to allow unwrapped paragraphs.
W. Trevor King [Sat, 31 Jul 2010 11:38:53 +0000 (07:38 -0400)]
Rework update_copyright and short_license to allow unwrapped paragraphs.

The GUI's about popup does it's own wrapping, so the text we send in
should be unwrapped.

14 years agoAdded 'get playlist' and hooke.plugin.playlists
W. Trevor King [Fri, 30 Jul 2010 19:57:11 +0000 (15:57 -0400)]
Added 'get playlist' and hooke.plugin.playlists

14 years agoAdded hooke.plugin.license and removed get-warrenty info from short_license.
W. Trevor King [Fri, 30 Jul 2010 19:45:29 +0000 (15:45 -0400)]
Added hooke.plugin.license and removed get-warrenty info from short_license.

Also uncommented update_authors() and update_files() in
update_copyright, since I'm no longer testing the pyfile code ;).

14 years agoAdd hooke/license.py to .hgignore
W. Trevor King [Fri, 30 Jul 2010 19:29:18 +0000 (15:29 -0400)]
Add hooke/license.py to .hgignore

14 years agoAdded pyfile output to update_copyright.py.
W. Trevor King [Fri, 30 Jul 2010 19:15:40 +0000 (15:15 -0400)]
Added pyfile output to update_copyright.py.

This creates hooke/license.py with licensing strings and functions.
I've updated the copyright blurbs in the command line startup message
and the GUI about message, but haven't actually added the advertised
'warrenty' and 'license' details yet.

14 years agoFix Command._run signatures in hooke.command and hooke.ui.commandline.
W. Trevor King [Fri, 30 Jul 2010 13:41:35 +0000 (09:41 -0400)]
Fix Command._run signatures in hooke.command and hooke.ui.commandline.

The commandline bits revert some changes from 6e29dc38540b where I'd
confused
  UserInterface.run(self, commands, ui_to_command_queue, command_to_ui_queue)
with
  Command._run(self, hooke, inqueue, outqueue, params)

14 years agoAdd ability to bypass troublesome imports to hooke.util.pluggable.submods.
W. Trevor King [Fri, 30 Jul 2010 13:37:35 +0000 (09:37 -0400)]
Add ability to bypass troublesome imports to hooke.util.pluggable.submods.

This allows you to, for example, run the command line UI without
having the GUI's required wxwindows installed.

14 years agoget prev/next playlist buttons working in the navbar
W. Trevor King [Fri, 30 Jul 2010 13:14:10 +0000 (09:14 -0400)]
get prev/next playlist buttons working in the navbar

14 years agoCleaned up playlist panel's curve selection
W. Trevor King [Fri, 30 Jul 2010 12:09:40 +0000 (08:09 -0400)]
Cleaned up playlist panel's curve selection

14 years agoFilled in the playlist panel's _on_delete handling
W. Trevor King [Fri, 30 Jul 2010 11:08:24 +0000 (07:08 -0400)]
Filled in the playlist panel's _on_delete handling

14 years agoRestored the playlist panel + cleanups now that I can load stuff into it ;).
W. Trevor King [Fri, 30 Jul 2010 01:51:26 +0000 (21:51 -0400)]
Restored the playlist panel + cleanups now that I can load stuff into it ;).

14 years agoDocstring cleanups in gui.panel.commands
W. Trevor King [Thu, 29 Jul 2010 19:03:15 +0000 (15:03 -0400)]
Docstring cleanups in gui.panel.commands

14 years agoCan successfully run 'load playlist' from CommandsPanel
W. Trevor King [Thu, 29 Jul 2010 19:02:09 +0000 (15:02 -0400)]
Can successfully run 'load playlist' from CommandsPanel

14 years agoFill out prop_from_arguments so PropertyPanel displays command args.
W. Trevor King [Thu, 29 Jul 2010 17:16:23 +0000 (13:16 -0400)]
Fill out prop_from_arguments so PropertyPanel displays command args.

14 years agoAdded simple PathProperty (same as StringProperty).
W. Trevor King [Thu, 29 Jul 2010 16:43:56 +0000 (12:43 -0400)]
Added simple PathProperty (same as StringProperty).

Outstanding types:
      3 object
      3 dict
      1 function

14 years agohooke.plugin.playlist.AddGlobCommand's 'input' argument type 'glob' -> 'string'
W. Trevor King [Thu, 29 Jul 2010 16:37:31 +0000 (12:37 -0400)]
hooke.plugin.playlist.AddGlobCommand's 'input' argument type 'glob' -> 'string'

14 years agoAdded FloatProperty and ChoiceProperty.
W. Trevor King [Thu, 29 Jul 2010 16:36:38 +0000 (12:36 -0400)]
Added FloatProperty and ChoiceProperty.

ChoiceProperty will be used for 'curve', 'playlist', and possibly 'driver'.

We'll group the outstanding types following:
  PathProperty():
      5 file
      2 path
  To be renamed:
      1 glob   -->   string
  To be determined:
      3 object
      3 dict
      1 function
  Handled by callbacks, to allow clicking on plots:
      1 point

14 years agoAdded BoolProperty and StringProperty
W. Trevor King [Thu, 29 Jul 2010 16:08:23 +0000 (12:08 -0400)]
Added BoolProperty and StringProperty

A grep through hooke/plugins/ shows what we need to implement.
I've checked the completed properties with '+'.

  $ grep 'type=' hooke/plugin/*.py | sed -n "s/.* type='\([^']*\)'.*/\1/p" | sort | uniq -c
 +    8 bool
      2 curve
      3 dict
      1 driver
      5 file
      7 float
      1 function
      1 glob
 +   22 int
      3 object
      2 path
      1 playlist
      1 point
 +    6 string

14 years agoAdded gui.panel.propertyeditor2 to work around *nix+wxPropertyGrid issues.
W. Trevor King [Thu, 29 Jul 2010 15:22:09 +0000 (11:22 -0400)]
Added gui.panel.propertyeditor2 to work around *nix+wxPropertyGrid issues.

The basic framework works, but only IntProperty is currently implemented.

14 years agoArgument-less command execution in GUI working!
W. Trevor King [Thu, 29 Jul 2010 11:55:34 +0000 (07:55 -0400)]
Argument-less command execution in GUI working!

14 years agoAdded gui.panel.output for displaying text output
W. Trevor King [Thu, 29 Jul 2010 11:41:27 +0000 (07:41 -0400)]
Added gui.panel.output for displaying text output

14 years agoAdded gui.panel.output for displaying text output
W. Trevor King [Thu, 29 Jul 2010 11:39:59 +0000 (07:39 -0400)]
Added gui.panel.output for displaying text output

14 years agoOops. Remove PerspectiveHooks relic of aborted MixIn refactoring
W. Trevor King [Wed, 28 Jul 2010 21:52:45 +0000 (17:52 -0400)]
Oops.  Remove PerspectiveHooks relic of aborted MixIn refactoring

14 years agoReordered gui.HookeFrame methods to group by category
W. Trevor King [Tue, 27 Jul 2010 20:51:27 +0000 (16:51 -0400)]
Reordered gui.HookeFrame methods to group by category

14 years agoGot 'Perspectives' menu working
W. Trevor King [Tue, 27 Jul 2010 20:35:43 +0000 (16:35 -0400)]
Got 'Perspectives' menu working

14 years agoBreak out hooke.util.pluggable.submods.
W. Trevor King [Tue, 27 Jul 2010 16:14:14 +0000 (12:14 -0400)]
Break out hooke.util.pluggable.submods.

14 years agoViewMenu now works with new gui layout
W. Trevor King [Tue, 27 Jul 2010 14:47:32 +0000 (10:47 -0400)]
ViewMenu now works with new gui layout

14 years agoOops, meant to include hooke.ui.gui.panel.selection in last commit.
W. Trevor King [Tue, 27 Jul 2010 14:39:21 +0000 (10:39 -0400)]
Oops, meant to include hooke.ui.gui.panel.selection in last commit.

14 years agohooke.ui.gui was getting complicated, so I stripped it down for a moment.
W. Trevor King [Tue, 27 Jul 2010 14:30:23 +0000 (10:30 -0400)]
hooke.ui.gui was getting complicated, so I stripped it down for a moment.

I want HookeFrame to be a callback clearinghouse.  Flow will look like

     panels/menus/navbars
        |       ^
  callbacks   methods
        v       |v--(response processors)-,
       Hooke Frame                       engine
                `---(execute_command)----^

With the following naming scheme in HookeFrame:
  callbacks:           _on_*
  response processors: _postprocess_*

Also:
* more use of hooke.util.pluggable for handling extendible submods.

14 years agoBroke menu, navbar, statusbar, panel.notebook, and panel.welcome out of gui
W. Trevor King [Mon, 26 Jul 2010 20:43:07 +0000 (16:43 -0400)]
Broke menu, navbar, statusbar, panel.notebook, and panel.welcome out of gui

14 years agoRearranged gui.panel.commands
W. Trevor King [Mon, 26 Jul 2010 19:06:27 +0000 (15:06 -0400)]
Rearranged gui.panel.commands

14 years agoMajor rework of gui.panel.playlist.
W. Trevor King [Mon, 26 Jul 2010 00:33:15 +0000 (20:33 -0400)]
Major rework of gui.panel.playlist.

I'm trying to get as much of the Playlist handling out into this
submod as possible, which should make for a cleaner gui/__init__.py.
Still, some ways to go, and the current situation is untested.

14 years agoAdded in_callback() to hooke.util.callback and pulled out is_iterable().
W. Trevor King [Sun, 25 Jul 2010 16:40:50 +0000 (12:40 -0400)]
Added in_callback() to hooke.util.callback and pulled out is_iterable().

Also added hooke.util.caller with caller_name() which is useful for
in_callback().

14 years agoAdded hooke.util.callback defining the @callback decorator.
W. Trevor King [Sun, 25 Jul 2010 01:48:06 +0000 (21:48 -0400)]
Added hooke.util.callback defining the @callback decorator.

14 years agoBound events down through folders. To go: commands, propgrid, results
W. Trevor King [Sat, 24 Jul 2010 19:58:01 +0000 (15:58 -0400)]
Bound events down through folders.  To go: commands, propgrid, results

14 years agoCleaning up hooke.ui.gui. Can initialize, but without most bindings.
W. Trevor King [Sat, 24 Jul 2010 18:06:50 +0000 (14:06 -0400)]
Cleaning up hooke.ui.gui.  Can initialize, but without most bindings.

Following the wxPython style guide:
  http://wiki.wxpython.org/wxPython%20Style%20Guide
Most of removing IDs and breaking out GUI elements into their own classes.

14 years agoFix hooke -> commands typos in ui and ui.commandline.
W. Trevor King [Sat, 24 Jul 2010 17:44:29 +0000 (13:44 -0400)]
Fix hooke -> commands typos in ui and ui.commandline.

14 years agoRestore hooke.jpg which was damaged by an old update_copyright.py run
W. Trevor King [Sat, 24 Jul 2010 17:08:19 +0000 (13:08 -0400)]
Restore hooke.jpg which was damaged by an old update_copyright.py run

14 years agoRework gui/__init__.py imports
W. Trevor King [Sat, 24 Jul 2010 11:18:57 +0000 (07:18 -0400)]
Rework gui/__init__.py imports

14 years agoHack merge illysam's hooke.py into hooke/ui/gui/__init__.py
W. Trevor King [Fri, 18 Jun 2010 13:19:05 +0000 (09:19 -0400)]
Hack merge illysam's hooke.py into hooke/ui/gui/__init__.py

14 years agoRestore illysam's hooke.py with GUI initialization code
W. Trevor King [Fri, 18 Jun 2010 13:14:10 +0000 (09:14 -0400)]
Restore illysam's hooke.py with GUI initialization code

14 years agoStarted converting GUI to new UserInterface architecture
W. Trevor King [Fri, 18 Jun 2010 13:10:34 +0000 (09:10 -0400)]
Started converting GUI to new UserInterface architecture

14 years agoRun reload_config when initializing UIs
W. Trevor King [Fri, 18 Jun 2010 13:01:18 +0000 (09:01 -0400)]
Run reload_config when initializing UIs

14 years agoMarkup corrections in doc/gui.txt
W. Trevor King [Fri, 18 Jun 2010 12:37:36 +0000 (08:37 -0400)]
Markup corrections in doc/gui.txt

14 years agoFinished remarking doc/gui.txt in Sphinx's reStructuredText.
W. Trevor King [Fri, 18 Jun 2010 12:29:14 +0000 (08:29 -0400)]
Finished remarking doc/gui.txt in Sphinx's reStructuredText.

Also moved hooke.plugin.plot to hooke.ui.gui.plugin.plot, since it was
breaking Sphinx compilation.

14 years agoMerged Rolf Schmidt's illysam branch
W. Trevor King [Fri, 18 Jun 2010 11:53:55 +0000 (07:53 -0400)]
Merged Rolf Schmidt's illysam branch

14 years agoUse numpy.loadtxt instead of newer numpy.genfromtxt in Hemingway driver.
W. Trevor King [Fri, 18 Jun 2010 01:02:05 +0000 (21:02 -0400)]
Use numpy.loadtxt instead of newer numpy.genfromtxt in Hemingway driver.

From
  http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html
"In particular, genfromtxt is able to take missing data into account,
when other faster and simpler functions like loadtxt cannot"

We prefer loadtxt because:
  * It's faster and we don't need to handle missing data.
  * It's older (genfromtxt added in Numpy in 2009/01/19, released in
    v1.3.0), so it's more likely to be in the user's stock Numpy
    installation.

14 years agoMoved hooke.driver.hemingclamp to hemingway and updated to new Driver architecture
W. Trevor King [Thu, 17 Jun 2010 23:40:22 +0000 (19:40 -0400)]
Moved hooke.driver.hemingclamp to hemingway and updated to new Driver architecture

14 years agoMoved Closing from hooke.driver.jpk to hooke.util.util
W. Trevor King [Thu, 17 Jun 2010 19:52:31 +0000 (15:52 -0400)]
Moved Closing from hooke.driver.jpk to hooke.util.util

14 years agoAdded calibration file support to the JPK driver.
W. Trevor King [Thu, 17 Jun 2010 17:17:57 +0000 (13:17 -0400)]
Added calibration file support to the JPK driver.

I'm not sure about my interpretation of the calibration file format.
I've emailed JPK for clarification, so we'll see what they have to say.

Also:
* Check for 'filetype' attributes when loading playlists.  If it
  exists, try to load using the matching driver before going through
  the whole list of available drivers.  This should speed up checks
  for curves that were identified by some previous playlist activity
  (or by hand if the user is generating playlists from scratch).
* Pass curve info into Driver.read().  This allows playlist attributes
  to affect curve loading.  The particular example that motivated this
  was
    <CHANNEL-NAME>_<BASE-NAME>_to_<TARGET-NAME>_calibration_file
  for the JPK driver, but it is a good idea in general.  Experiment
  temperature should probably be set this way vs. its current global
  config setting.
* Added Driver.logger(), to reduce code duplication.

14 years agoUse PEP 343's 'with' instead of try:/finally: x.close()
W. Trevor King [Mon, 14 Jun 2010 16:52:17 +0000 (12:52 -0400)]
Use PEP 343's 'with' instead of try:/finally: x.close()

14 years agoBring hooke.config and hooke.util.peak doctests up to speed
W. Trevor King [Mon, 14 Jun 2010 15:37:32 +0000 (11:37 -0400)]
Bring hooke.config and hooke.util.peak doctests up to speed

14 years agoAlso override hooke.util.encoding.get_encoding in test/unicode_output.py
W. Trevor King [Mon, 14 Jun 2010 15:28:10 +0000 (11:28 -0400)]
Also override hooke.util.encoding.get_encoding in test/unicode_output.py

14 years agoImport os.path when we use it in test/*_driver.py
W. Trevor King [Mon, 14 Jun 2010 15:13:01 +0000 (11:13 -0400)]
Import os.path when we use it in test/*_driver.py

14 years agoAdjust test/wtk_driver.py since I didn't add all my original files.
W. Trevor King [Mon, 14 Jun 2010 15:05:53 +0000 (11:05 -0400)]
Adjust test/wtk_driver.py since I didn't add all my original files.

14 years agoSkip PoorFit curves in flatfilt and convfilt.
W. Trevor King [Mon, 14 Jun 2010 14:25:59 +0000 (10:25 -0400)]
Skip PoorFit curves in flatfilt and convfilt.

14 years agoAvoid possible negative p[2] values in SurfacePositionModel.
W. Trevor King [Mon, 14 Jun 2010 14:08:21 +0000 (10:08 -0400)]
Avoid possible negative p[2] values in SurfacePositionModel.

14 years agoUpdated JPK driver for JPK's version 0.5 format and new driver architecture
W. Trevor King [Mon, 14 Jun 2010 13:56:38 +0000 (09:56 -0400)]
Updated JPK driver for JPK's version 0.5 format and new driver architecture