Skip to content

Commit

Permalink
enh: treat parameters as defaults and allow to override as args
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Mar 6, 2024
1 parent 37f8472 commit 1941b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tensorwaves/function/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(
self.__parameters = dict(parameters)

def __call__(self, data: DataSample) -> np.ndarray:
extended_data = {**data, **self.__parameters} # type: ignore[arg-type]
extended_data = {**self.__parameters, **data} # type: ignore[arg-type]
return self.__function(extended_data) # type: ignore[arg-type]

@property
Expand Down

0 comments on commit 1941b7c

Please sign in to comment.