Skip some param translation in the JPK driver for channel-less segments.
authorW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 19:48:22 +0000 (15:48 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 19:48:22 +0000 (15:48 -0400)
hooke/driver/jpk.py

index 4e5ab0f..39dea4f 100644 (file)
@@ -199,6 +199,8 @@ class JPKDriver (Driver):
             'raw info':params,
             #'time':self._time_from_TODO(raw_info[]),
             }
+        if len(chan_info['channels']['list']) == 0:
+            return info
         force_unit = self._zip_unit(
             chan_info['channel']['vDeflection']['conversion-set']['conversion']['force']['scaling'],
             version)