# License along with Hooke. If not, see
# <http://www.gnu.org/licenses/>.
-"""Hooke driver for W. Trevor King's velocity clamp data format.
+"""Driver for W. Trevor King's velocity clamp data format.
See my related projects:
unlabeled_approach_data, params, 'approach')
retract = self._scale_block(
unlabeled_retract_data, params, 'retract')
- info = {'filetype':'wtk', 'experiment':experiment.VelocityClamp}
+ info = {'filetype':self.name, 'experiment':experiment.VelocityClamp}
return ([approach, retract], info)
def _paths(self, path):
* info['z piezo sensitivity (m/V)']
)
- ret[:,d_scol] = (
+ # Leading '-' because deflection voltage increases as the tip
+ # moves away from the surface, but it makes more sense to me
+ # to have it increase as it moves toward the surface (positive
+ # tension on the protein chain).
+ ret[:,d_scol] = -(
(data[:,d_rcol]
* info['deflection sensitivity (V/bit)']
- info['deflection offset (V)'])
if self._calibfile_timestamp(calibfiles[i]) > timestamp:
i -= 1
break
- return os.path.join(dir, calibfiles[i])
+ return calibfiles[i]
def _read_cantilever_calibration_file(self, filename):
ret = {'file': filename}