From 31d67f623c24b7fe932a968df0f2e2544aadf7dc Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 7 Feb 2013 01:03:00 -0500 Subject: [PATCH] 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. --- unfold_protein/unfolder.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(): -- 2.26.2