changed bsacquisition to avoid asigning an array to an element of an array with scalar elements
This commit is contained in:
+6
-2
@@ -94,9 +94,13 @@ def writeData(hid, data, scanrun=1):
|
||||
dset.attrs['system'] = getDatasetSystem(name[0])
|
||||
dset.attrs['units'] = 'unknown'
|
||||
# this part is obsolete - dimension should be given from the individual datasets
|
||||
if not 'pid' in data.keys():
|
||||
shape = None
|
||||
if 'pid' in data.keys():
|
||||
shape = data['pid'].shape
|
||||
if 'pulse_id' in data.keys():
|
||||
shape = data['pulse_id'].shape
|
||||
if shape is None:
|
||||
return
|
||||
shape = data['pid'].shape
|
||||
ndim = len(shape)
|
||||
nsam = shape[-1]
|
||||
nrec = 0
|
||||
|
||||
Reference in New Issue
Block a user