From b0ff44bbe4a8821f1a1703d45b70a2fab8d56d0f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 21 Aug 2010 14:47:02 -0400 Subject: [PATCH] Fix to plugin experiment checks after 8687bbf30e87. --- hooke/plugin/convfilt.py | 2 +- hooke/plugin/flatfilt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooke/plugin/convfilt.py b/hooke/plugin/convfilt.py index ff9e68c..a5780e9 100644 --- a/hooke/plugin/convfilt.py +++ b/hooke/plugin/convfilt.py @@ -149,7 +149,7 @@ class ConvolutionPeaksCommand (Command): deflection arrays. """ curve = params['curve'] - if curve.info['experiment'] != VelocityClamp: + if not isinstance(curve.info['experiment'], VelocityClamp): raise Failure('%s operates on VelocityClamp experiments, not %s' % (self.name, curve.info['experiment'])) data = None diff --git a/hooke/plugin/flatfilt.py b/hooke/plugin/flatfilt.py index 63a9967..79300cd 100644 --- a/hooke/plugin/flatfilt.py +++ b/hooke/plugin/flatfilt.py @@ -170,7 +170,7 @@ Name for storing the list of peaks in the `.info` dictionary. deflection arrays. """ curve = self._curve(hooke=hooke, params=params) - if curve.info['experiment'] != VelocityClamp: + if not isinstance(curve.info['experiment'], VelocityClamp): raise Failure('%s operates on VelocityClamp experiments, not %s' % (self.name, curve.info['experiment'])) for key,value in params.items(): -- 2.26.2