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 ff9e68c6307add81ad6b914581551b0d22da621a..a5780e98fdc25e2e670788138e54fa93e4429a9e 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 63a99673f049a58a2871675eb67a8165c792093e..79300cd77a818556da307de4475d049a0420abc2 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():