From a5189537bb3197ebf555a39dc7012bf25711f3be Mon Sep 17 00:00:00 2001 From: Philipp Dijkstal Date: Sun, 27 Apr 2025 12:01:58 +0200 Subject: [PATCH] bugfix --- ext/bscacquisition.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/bscacquisition.py b/ext/bscacquisition.py index 28efa25..da3ad3a 100644 --- a/ext/bscacquisition.py +++ b/ext/bscacquisition.py @@ -25,12 +25,13 @@ class BSCAcquisition(Acquisition): #print('Received %i' % i) # write out the data file + use_channels = channels or self.bscache.channels with h5py.File(filename,'a') as hid: # save the pulse ID singledata = [ele['pid'] for ele in data] pidname = 'pulse_id/group%d' % self.grp hid.create_dataset(pidname, data=singledata) - for chn in channels: + for chn in use_channels: singledata = [ele[chn] for ele in data] if not chn == 'pid': dname = chn.replace(':','/')+'/data'