added new files

This commit is contained in:
2024-12-03 17:33:04 +01:00
parent 5e06e49c45
commit 36b7a2980a
6 changed files with 396 additions and 2 deletions

View File

@ -12,7 +12,6 @@ class BSCAcquisition(Acquisition):
def _acquire(self, filename, channels=None, data_base_dir=None, scan_info=None, n_pulses=100, **kwargs):
print('*** Reading out the cache ****')
queue =channels[0] # abusing interface since BSAcquisition assume a list of channels
# allocating space
@ -29,7 +28,6 @@ class BSCAcquisition(Acquisition):
for chn in chns:
data[chn]['data'][i] = msg[chn]
data['pulse_id'][i]=msg['pid']
print(msg['pid'])
# write out the data file
hid = h5py.File(filename,'w')
hid.create_dataset('pulse_id', data = data['pulse_id'])