Added Hooke-update-2, reproducing errors initially found in Hooke-update
authorW. Trevor King <wking@drexel.edu>
Mon, 30 Aug 2010 17:38:40 +0000 (13:38 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 30 Aug 2010 17:38:40 +0000 (13:38 -0400)
posts/Hooke-update-2.mdwn [new file with mode: 0644]
posts/Hooke-update.mdwn

diff --git a/posts/Hooke-update-2.mdwn b/posts/Hooke-update-2.mdwn
new file mode 100644 (file)
index 0000000..a7217cd
--- /dev/null
@@ -0,0 +1,30 @@
+In [[an earlier post|Hooke-update]], I reported seeing `surface
+distance (m) (m)` columns in my playlist files, but had been unable to
+reproduce them.  Today, after [fixing bugs with Curve
+copying](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/59390d466f0d),
+I did reproduce them with:
+
+    $ ./bin/hk.py
+        -c 'load_playlist test/data/vclamp_picoforce/playlist'
+        -c 'start_command_capture'
+        -c 'zero_surface_contact_point --block approach'
+        -c 'zero_surface_contact_point --block retract'
+        -c 'stop_command_capture'
+        -c 'apply_command_stack_to_playlist --enable-evaluate'
+        -c 'flat_filter_playlist --block retract --min_points 1'
+    Success
+    ...
+    Failure
+    Expected a list of Peaks, not <class 'hooke.command.Failure'>:
+      surface distance (m) not in retract (['z piezo (m)', 'deflection (m)',
+      'surface distance (m) (m)', 'surface deflection (m) (m)']):
+      list.index(x): x not in list
+
+It appears to be a problem with curve reloading, since it doesn't come
+up when I use a playlist with less than 100 (`Playlist._max_loaded`)
+curves.
+
+I'll update this post once I've tracked down the culprit.
+
+[[!tag tags/hooke]]
+[[!tag tags/programming]]
index a32265c4e781e0c2ac49ed126ed8d7e223e33c98..fd00a016259c44fe96e9d7d9f72829c9570780a1 100644 (file)
@@ -52,8 +52,8 @@ It did, however turn up a couple of outstanding issues:
   or string objects.
   ([fixed](http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/302413fafa96))
 - `surface distance (m) (m)` column.  Obviously someone is adding
-  units twice.  I need to figure out who it is ;).  (could not
-  reproduce.  Maybe I screwed up the units myself. ;)
+  units twice.  I need to figure out who it is ;).
+  ([[Reproduced|Hooke-update-2]])
 
 [[!tag tags/hooke]]
 [[!tag tags/programming]]