From: W. Trevor King Date: Thu, 7 Feb 2013 06:03:00 +0000 (-0500) Subject: unfolder: Save the timestamp, x-position, and temp under environment/ X-Git-Tag: v0.2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31d67f623c24b7fe932a968df0f2e2544aadf7dc;p=unfold-protein.git unfolder: Save the timestamp, x-position, and temp under environment/ Keep the HDF5 root clean by moving these parameters under the environment/ group. Earlier versions of unfold-protein did not record the x-position. --- diff --git a/unfold_protein/unfolder.py b/unfold_protein/unfolder.py index 57def43..cc5977e 100755 --- a/unfold_protein/unfolder.py +++ b/unfold_protein/unfolder.py @@ -219,9 +219,12 @@ class Unfolder (object): storage.save(config=self.config, group=config_cwg) afm_piezo_cwg = _h5_create_group(config_cwg, 'afm/piezo') storage.save(config=self.afm.piezo.config, group=afm_piezo_cwg) - f['timestamp'] = timestamp + f['/environment/timestamp'] = timestamp + x_axis_name = 'x' + f['/environment/{}-position/data'.format(x_axis_name) + ] = self.afm.piezo.last_output[x_axis_name] if temperature is not None: - f['temperature'] = temperature + f['/environment/temperature'] = temperature for k,v in approach.items(): f['approach/{}'.format(k)] = v for k,v in unfold.items():