Fix to plugin experiment checks after 8687bbf30e87.
authorW. Trevor King <wking@drexel.edu>
Sat, 21 Aug 2010 18:47:02 +0000 (14:47 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 21 Aug 2010 18:47:02 +0000 (14:47 -0400)
hooke/plugin/convfilt.py
hooke/plugin/flatfilt.py

index ff9e68c..a5780e9 100644 (file)
@@ -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
index 63a9967..79300cd 100644 (file)
@@ -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():