Transition from v0.1 XML playlists to v0.2 YAML playlists.
authorW. Trevor King <wking@drexel.edu>
Sat, 21 Aug 2010 13:57:08 +0000 (09:57 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 21 Aug 2010 13:57:08 +0000 (09:57 -0400)
commitf1b96b0334501099017e9665d60ff238c37a01fa
tree186d7873483a090ef441933292a8b08a8a44f08e
parent732107c3f395aec642ceb8e09ac9baf19dd14ae3
Transition from v0.1 XML playlists to v0.2 YAML playlists.

All test/ tests pass except for tutorial.py and note.py, which take
forever to run.  I'm going to figure out what's going on there next.

Anyone with old playlist files can either upgrade by hand (the new
syntax is pretty simple, see the playlists under test/data/ for
examples), or use the automatic script
  contrib/upgrade_playlist_0p1.py
which converts the playlists automatically.  The output from the
upgrade script is, like most auto-generated files, less concise
than a hand coded playlist, but it will work just fine.

For an introduction to YAML, see
  http://www.yaml.orlg/
which contains links YAML libraries in a number of languages.  The
playlists are generated with PyYAML
  http://pyyaml.org/
which handles YAML 1.1
  http://yaml.org/spec/1.1/
The Hooke playlist format is pretty simple, so it shouldn't be too
strongly tied to any particular version of YAML, although I haven't
actually tested it with a 1.0 or 1.2 parser.
23 files changed:
contrib/upgrade_playlist_0p1.py [new file with mode: 0755]
hooke/command_stack.py
hooke/compat/minidom.py [deleted file]
hooke/curve.py
hooke/engine.py
hooke/playlist.py
hooke/plugin/note.py
hooke/plugin/playlist.py
test/curve_info.py
test/data/fclamp_hemingway/playlist.hkp
test/data/test.hkp
test/data/vclamp_jpk/playlist.hkp
test/data/vclamp_mfp3d/playlist.hkp
test/data/vclamp_picoforce/playlist.hkp
test/data/vclamp_wtk/playlist.hkp
test/flat_filter_playlist.py
test/hemingway_driver.py
test/jpk_driver.py
test/mfp3d_driver.py
test/multiple_curve_analysis.py
test/picoforce_driver.py
test/polymer_fit.py
test/wtk_driver.py