Browse Source

bug fixing

joschka_dev
Jianshun Gao 1 year ago
parent
commit
5a5aee8cea
  1. 10
      Analyser/FitAnalyser.py
  2. 645
      test.ipynb

10
Analyser/FitAnalyser.py

@ -503,6 +503,7 @@ class FitAnalyser():
'output_sizes': { 'output_sizes': {
output_core_dims[0]: np.size(x), output_core_dims[0]: np.size(x),
}, },
'meta': np.ndarray((0,0), dtype=float)
}, },
} }
) )
@ -514,7 +515,6 @@ class FitAnalyser():
kwargs.update( kwargs.update(
{ {
"output_core_dims": [[prefix+'x', prefix+'y']], "output_core_dims": [[prefix+'x', prefix+'y']],
"output_dtypes": float,
} }
) )
output_core_dims = [prefix+'x', prefix+'y'] output_core_dims = [prefix+'x', prefix+'y']
@ -526,17 +526,11 @@ class FitAnalyser():
output_core_dims[0]: np.size(x), output_core_dims[0]: np.size(x),
output_core_dims[1]: np.size(y), output_core_dims[1]: np.size(y),
}, },
# 'output_dtypes': float,
# 'output_dtypes': {
# output_core_dims[0]: float,
# output_core_dims[1]: float,
# },
'meta': np.ndarray((0,0), dtype=float)
}, },
} }
) )
# del kwargs['output_dtypes']
_x, _y = np.meshgrid(x, y) _x, _y = np.meshgrid(x, y)
_x = _x.flatten() _x = _x.flatten()
_y = _y.flatten() _y = _y.flatten()

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

Loading…
Cancel
Save