Browse Source

debug

joschka_dev
Jianshun Gao 1 year ago
parent
commit
4f86c61d78
  1. 2
      DataContainer/ReadData.py
  2. 2
      ToolFunction/ToolFunction.py
  3. 2111
      testMongoDB.ipynb

2
DataContainer/ReadData.py

@ -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(

2
ToolFunction/ToolFunction.py

@ -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

2111
testMongoDB.ipynb
File diff suppressed because one or more lines are too long
View File

Loading…
Cancel
Save