Adjust test/wtk_driver.py since I didn't add all my original files.
authorW. Trevor King <wking@drexel.edu>
Mon, 14 Jun 2010 15:05:53 +0000 (11:05 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 14 Jun 2010 15:05:53 +0000 (11:05 -0400)
hooke/driver/picoforce.py
test/wtk_driver.py

index a465c2ef5ad1c359532e435f9fb6a2ff83aca80d..4ca9c5f35dc4dea50c4ba9a0c504fd6365132721 100644 (file)
@@ -292,12 +292,13 @@ class PicoForceDriver (Driver):
         #    raise NotImplementedError(
         #        'Missmatched duplicate traces for %s: %s'
         #        % (trace_name, ', '.join(msg)))
-        import sys
+        import logging
+        log = logging.getLogger('hooke')
         for name,t in traces.items():
             if (t == trace).all():
-                print >> sys.stderr, 'replace %s with %s-2' % (name, trace_name)
+                log.debug('replace %s with %s-2' % (name, trace_name))
                 return name  # Replace this identical dataset.
-        print >> sys.stderr, 'store %s-2 as Other' % (trace_name)
+        log.debug('store %s-2 as Other' % (trace_name))
         return 'Other'
         # return None
 
index f570bc9731ca4595462196bb3d328bed035f918f..bf2af11070959ce9457f43dad916b6ba5b36622f 100644 (file)
@@ -42,14 +42,14 @@ Proceed with the test itself.
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
-name: 20100504135237_unfold
-path: test/data/vclamp_wtk/unfold/20100504/20100504135237_unfold
+name: 20100504144209_unfold
+path: test/data/vclamp_wtk/unfold/20100504/20100504144209_unfold
 experiment: <class 'hooke.experiment.VelocityClamp'>
 driver: <hooke.driver.wtk.WTKDriver object at 0x...>
 filetype: wtk
 note: 
 blocks: 2
-block sizes: [(16001, 3), (16001, 3)]
+block sizes: [(810, 2), (8001, 2)]
 Success
 <BLANKLINE>
 """