Fix to plugin experiment checks after 8687bbf30e87.
[hooke.git] / hooke / plugin / flatfilt.py
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():