bug fixing

This commit is contained in:
Jianshun Gao 2023-05-05 18:30:53 +02:00
parent 0925cf63b6
commit 5a5aee8cea
2 changed files with 576 additions and 79 deletions

View File

@ -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, 'meta': np.ndarray((0,0), dtype=float)
# 'output_dtypes': {
# output_core_dims[0]: float,
# output_core_dims[1]: 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()

File diff suppressed because one or more lines are too long