mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / Hooke-update.mdwn
1 Minor tweaks to Hooke's [command stacks][stacks].  I can now execute
2 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 bugs][bugs], I successfully ran:
24
25     ./bin/hk.py 
26         -c 'new_playlist'
27         -c 'glob_curves_to_playlist *'
28         -c 'start_command_capture'
29         -c 'zero_surface_contact_point --block retract'
30         -c 'flat_filter_peaks --block retract --min_points 1'
31         -c 'zero_surface_contact_point --block retract --ignore_after_last_peak_info_name "flat filter peaks"'
32         -c 'convert_distance_to_force --block retract --deflection_column "surface deflection (m)"'
33         -c 'remove_cantilever_from_extension --block retract'
34         -c 'flat_peaks_to_polymer_peaks --block retract'
35         -c 'polymer_fit_peaks --block retract'
36         -c 'stop_command_capture'
37         -c 'apply_command_stack_to_playlist --enable-evaluate'
38         -c 'save_playlist --output o.hkp'
39
40 on 2400 curves with the command line UI.  Tomorrow I'll run through
41 those with the GUI.
42
43 Update:
44
45 I ran through with the above command with the GUI.  Same results :D.
46 It did, however turn up a couple of outstanding issues:
47
48 - lots of useless `!!python/unicode 'retract'` tags.  If the strings
49   are all in ASCII, I don't really care if they are loaded as unicode
50   or string objects.
51   ([fixed][])
52 - `surface distance (m) (m)` column.  Obviously someone is adding
53   units twice.  I need to figure out who it is ;).
54   ([[Reproduced|Hooke-update-2]])
55
56 [stacks]: http://git.tremily.us/?p=hooke.git;a=commit;h=e57e6aa9b86351398b3af9a24513169395a71522
57 [bugs]: http://git.tremily.us/?p=hooke.git;a=commit;h=ae0184d8c8ffe1c1ac2f811ded7f5b81d04aeb0b
58 [fixed]: http://git.tremily.us/?p=hooke.git;a=commit;h=608071d67afc1775941505c6684d31a279f041a0
59
60 [[!tag tags/hooke]]
61 [[!tag tags/programming]]