regular backup

This commit is contained in:
Jianshun Gao 2023-05-08 17:48:53 +02:00
parent c85b19ec44
commit 79cbda037e
2 changed files with 1563 additions and 445 deletions

File diff suppressed because one or more lines are too long

View File

@ -63,10 +63,12 @@ def combine_uncertainty(value, std, dask='parallelized', **kwargs):
def _seperate_uncertainty_single(data): def _seperate_uncertainty_single(data):
return data.n, data.s return data.n, data.s
def _seperate_uncertainty(data): def _seperate_uncertainty(data):
func = np.vectorize(_seperate_uncertainty_single) func = np.vectorize(_seperate_uncertainty_single)
return func(data) return func(data)
def seperate_uncertainty(data, dask='parallelized', **kwargs): def seperate_uncertainty(data, dask='parallelized', **kwargs):
kwargs.update( kwargs.update(
@ -91,6 +93,7 @@ def get_scanAxis(dataSet):
return res return res
def print_scanAxis(dataSet): def print_scanAxis(dataSet):
scanAxis = dataSet.scanAxis scanAxis = dataSet.scanAxis
@ -119,4 +122,12 @@ def calculate_std(dataSet):
if 'runs' in dataSet.dims: if 'runs' in dataSet.dims:
return dataSet.mean(dim='runs') return dataSet.mean(dim='runs')
else: else:
return None return None
def extract_temperature_from_fit():
pass
def extract_condensate_fraction_from_fit():
pass