From 6ce1d614cada40162d2de64f4ac4480f3ec86d76 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 8 Aug 2010 16:41:47 -0400 Subject: [PATCH] Remove old vclamp commands replaced by the curve plugin's DeltaCommand. --- hooke/plugin/vclamp.py | 43 ------------------------------------------ 1 file changed, 43 deletions(-) diff --git a/hooke/plugin/vclamp.py b/hooke/plugin/vclamp.py index de5bff7..64b5913 100644 --- a/hooke/plugin/vclamp.py +++ b/hooke/plugin/vclamp.py @@ -581,49 +581,6 @@ Name of the spring constant in the `.info` dictionary. class generalvclampCommands(object): - def _plug_init(self): - self.basecurrent=None - self.basepoints=None - self.autofile='' - - def do_distance(self,args): - ''' - DISTANCE - (generalvclamp.py) - Measure the distance (in nm) between two points. - For a standard experiment this is the delta X distance. - For a force clamp experiment this is the delta Y distance (actually becomes - an alias of zpiezo) - ----------------- - Syntax: distance - ''' - if self.current.curve.experiment == 'clamp': - print 'You wanted to use zpiezo perhaps?' - return - else: - dx,unitx,dy,unity=self._delta(set=1) - print str(dx*(10**9))+' nm' - to_dump='distance '+self.current.path+' '+str(dx*(10**9))+' nm' - self.outlet.push(to_dump) - - - def do_force(self,args): - ''' - FORCE - (generalvclamp.py) - Measure the force difference (in pN) between two points - --------------- - Syntax: force - ''' - if self.current.curve.experiment == 'clamp': - print 'This command makes no sense for a force clamp experiment.' - return - dx,unitx,dy,unity=self._delta(set=1) - print str(dy*(10**12))+' pN' - to_dump='force '+self.current.path+' '+str(dy*(10**12))+' pN' - self.outlet.push(to_dump) - - def do_forcebase(self,args): ''' FORCEBASE -- 2.26.2