Added latex2html post.
[blog.git] / posts / Hooke-update.mdwn
1 Minor tweaks to Hooke's [command
2 stacks](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/8c0882dfbaf5).  I can now execute the GUI alternative of
3
4     ./bin/hk.py 
5         -c 'new_playlist'
6         -c 'glob_curves_to_playlist *'
7         -c 'start_command_capture'
8         -c 'zero_surface_contact_point --block retract'
9         -c 'stop_command_capture'
10         -c 'apply_command_stack_to_playlist'
11         -c 'curve_info'
12         -p
13
14 Issues resolved today:
15
16 - GUI-generated commands clogging the command stack instead of
17   being executed.  Fixed with CommandMessage.explicit_user_call.
18 - Playlist._loaded desyncronization from old 'apply command stack
19   to playlist'.  Fixed with Playlist.unload().
20
21 Update:
22
23 After [fixing up a few more
24 bugs](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/7ba2243a9b45),
25 I successfully ran:
26
27     ./bin/hk.py 
28         -c 'new_playlist'
29         -c 'glob_curves_to_playlist *'
30         -c 'start_command_capture'
31         -c 'zero_surface_contact_point --block retract'
32         -c 'flat_filter_peaks --block retract --min_points 1'
33         -c 'zero_surface_contact_point --block retract --ignore_after_last_peak_info_name "flat filter peaks"'
34         -c 'convert_distance_to_force --block retract --deflection_column "surface deflection (m)"'
35         -c 'remove_cantilever_from_extension --block retract'
36         -c 'flat_peaks_to_polymer_peaks --block retract'
37         -c 'polymer_fit_peaks --block retract'
38         -c 'stop_command_capture'
39         -c 'apply_command_stack_to_playlist --enable-evaluate'
40         -c 'save_playlist --output o.hkp'
41
42 on 2400 curves with the command line UI.  Tomorrow I'll run through
43 those with the GUI.
44
45 Update:
46
47 I ran through with the above command with the GUI.  Same results :D.
48 It did, however turn up a couple of outstanding issues:
49
50 - lots of useless `!!python/unicode 'retract'` tags.  If the strings
51   are all in ASCII, I don't really care if they are loaded as unicode
52   or string objects.
53   ([fixed](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/302413fafa96))
54 - `surface distance (m) (m)` column.  Obviously someone is adding
55   units twice.  I need to figure out who it is ;).
56   ([[Reproduced|Hooke-update-2]])
57
58 [[!tag tags/hooke]]
59 [[!tag tags/programming]]