Browse Source

not finish get_fit_result

joschka_dev
Jianshun Gao 1 year ago
parent
commit
68d778de88
  1. 10
      ToolFunction/ToolFunction.py
  2. 812
      test.ipynb

10
ToolFunction/ToolFunction.py

@ -19,6 +19,15 @@ def auto_rechunk(dataSet):
return dataSet.chunk(**kwargs) return dataSet.chunk(**kwargs)
def copy_chunk(dataSet, dataChunk):
kwargs = {
key: dataChunk.chunksizes[key]
for key in dataChunk.chunksizes
if key in dataSet.dims
}
return dataSet.chunk(**kwargs)
def get_h5_file_path(folderpath, maxFileNum=None, filename='*.h5',): def get_h5_file_path(folderpath, maxFileNum=None, filename='*.h5',):
filepath = np.sort(glob.glob(folderpath + filename)) filepath = np.sort(glob.glob(folderpath + filename))
if maxFileNum is None: if maxFileNum is None:
@ -31,6 +40,7 @@ def get_date():
today = date.today() today = date.today()
return today.strftime("%y/%m/%d") return today.strftime("%y/%m/%d")
def resolve_fit_result(fitResult): def resolve_fit_result(fitResult):

812
test.ipynb
File diff suppressed because one or more lines are too long
View File

Loading…
Cancel
Save