Add function to calculate mean and std
This commit is contained in:
parent
075be187e4
commit
8d03d7846e
@ -106,3 +106,17 @@ def print_scanAxis(dataSet):
|
||||
)
|
||||
print("The detected scaning axes and values are: /n")
|
||||
print(scan)
|
||||
|
||||
|
||||
def calculate_mean(dataSet):
|
||||
if 'runs' in dataSet.dims:
|
||||
return dataSet.mean(dim='runs')
|
||||
else:
|
||||
return dataSet
|
||||
|
||||
|
||||
def calculate_std(dataSet):
|
||||
if 'runs' in dataSet.dims:
|
||||
return dataSet.mean(dim='runs')
|
||||
else:
|
||||
return None
|
Loading…
Reference in New Issue
Block a user