This commit is contained in:
Jianshun Gao 2023-05-25 19:11:19 +02:00
parent 401ea8d96c
commit 4f86c61d78
3 changed files with 263 additions and 1764 deletions

View File

@ -97,7 +97,7 @@ def _assign_scan_axis_partial(x, datesetOfGlobal, fullFilePath):
shotNum = np.where(fullFilePath==filePath)
shotNum = np.squeeze(shotNum)
# shotNum = filePath.split("_")[-1].split("_")[-1].split(".")[0]
x = x.assign(shotNum=shotNum)
x = x.assign(shotNum=filePath.split("_")[-1].split("_")[-1].split(".")[0])
x = x.expand_dims(list(scanAxis))
return x.assign_coords(

View File

@ -120,7 +120,7 @@ def calculate_mean(dataSet):
def calculate_std(dataSet):
if 'runs' in dataSet.dims:
return dataSet.mean(dim='runs')
return dataSet.std(dim='runs')
else:
return None

File diff suppressed because one or more lines are too long