-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
To save file space and avoid recording the same giant time vector in every file, we changed the way my picoscope code returns data. It seems like maybe the associated changes never made it into your code base.
data-coolection/lib/data_coolection.py
Line 615 in 5626d9a
| h5g.create_dataset('x_data', data=self.data['time'], compression='gzip') |
won't work any more.
Instead, you should just add the attributes I now provide to the y_data dataset so that I can reconstruct the time vector in my analysis. Your
write_datasets function might then become something like this:
def write_datasets(self, h5g):
y_dset = h5g.create_dataset('y_data', data=self.data['current'], compression='gzip')
for key, value in self.data:
if key != 'current':
y_dset.attrs[key] = value
for attr, value in self._ps.getMetadata().items():
h5g.attrs[attr] = value
See the example usage code for my picoscope library here:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels