Skip to content

Commit

Permalink
BUGFIX: ExperimentSample.from_numpy in experimentsample factory conta…
Browse files Browse the repository at this point in the history
…ins correct kwargs
  • Loading branch information
mpvanderschelling committed Sep 24, 2024
1 parent 8c77a36 commit 7d6ec81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/f3dasm/_src/experimentdata/experimentsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def _experimentsample_factory(
The converted experiment sample.
"""
if isinstance(experiment_sample, np.ndarray):
return ExperimentSample.from_numpy(experiment_sample, domain)
return ExperimentSample.from_numpy(input_array=experiment_sample,
domain=domain)

elif isinstance(experiment_sample, dict):
return ExperimentSample(dict_input=experiment_sample,
Expand Down

0 comments on commit 7d6ec81

Please sign in to comment.