def read(self, path, info=None):
data,bin_info,wave_info = loadibw(path)
- approach,retract = self._translate_ibw(data, bin_info, wave_info)
-
- info = {'filetype':self.name, 'experiment':experiment.VelocityClamp}
+ approach,retract,info = self._translate_ibw(data, bin_info, wave_info)
+ info['filetype'] = self.name
+ info['experiment'] = experiment.VelocityClamp
return ([approach, retract], info)
def _translate_ibw(self, data, bin_info, wave_info):
# MFP3D's native data dimensions match Hooke's (<point>, <column>) layout.
approach = self._scale_block(data[:wave_info['npnts']/2,:], info, 'approach')
retract = self._scale_block(data[wave_info['npnts']/2:,:], info, 'retract')
- return (approach, retract)
+ return (approach, retract, info)
def _scale_block(self, data, info, name):
"""Convert the block from its native format to a `numpy.float`