From e306649cae7886c0a78ac145a2ed0ce8646fa2da Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 8 Sep 2010 15:48:22 -0400 Subject: [PATCH] Skip some param translation in the JPK driver for channel-less segments. --- hooke/driver/jpk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooke/driver/jpk.py b/hooke/driver/jpk.py index 4e5ab0f..39dea4f 100644 --- a/hooke/driver/jpk.py +++ b/hooke/driver/jpk.py @@ -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) -- 2.26.2