From: W. Trevor King Date: Sun, 8 Aug 2010 20:48:59 +0000 (-0400) Subject: Remove the old multiplier plotmanip from the vclamp plugin. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cb91887d0471a23cd683334297584d1a11720a5;p=hooke.git Remove the old multiplier plotmanip from the vclamp plugin. Anything you did with the multiplier plugin can be done with ForceCommand. Perhaps ForceCommand should be a specific set of defaults to a MultiplierCommand in the curve plugin, but until I see good motivation for such genralization, I'll leave things the way they are. --- diff --git a/hooke/plugin/vclamp.py b/hooke/plugin/vclamp.py index 26fa4ff..fbd6335 100644 --- a/hooke/plugin/vclamp.py +++ b/hooke/plugin/vclamp.py @@ -581,33 +581,6 @@ Name of the spring constant in the `.info` dictionary. class generalvclampCommands(object): - def plotmanip_multiplier(self, plot, current): - ''' - Multiplies all the Y values of an SMFS curve by a value stored in the 'force_multiplier' - configuration variable. Useful for calibrations and other stuff. - ''' - - #not a smfs curve... - if current.curve.experiment != 'smfs': - return plot - - #only one set is present... - if len(self.plots[0].vectors) != 2: - return plot - - #multiplier is 1... - if (self.config['force_multiplier']==1): - return plot - - for i in range(len(plot.vectors[0][1])): - plot.vectors[0][1][i]=plot.vectors[0][1][i]*self.config['force_multiplier'] - - for i in range(len(plot.vectors[1][1])): - plot.vectors[1][1][i]=plot.vectors[1][1][i]*self.config['force_multiplier'] - - return plot - - def plotmanip_flatten(self, plot, current, customvalue=False): ''' Subtracts a polynomial fit to the non-contact part of the curve, as to flatten it.