Fix to plugin experiment checks after 8687bbf30e87.
[hooke.git] / hooke / plugin / convfilt.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