Skip to content

Commit

Permalink
possibility to escape wrapping at call
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyCMWF committed Jul 14, 2023
1 parent cc33143 commit aecd7e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion earthkit/data/utils/module_inputs_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def _wrapper(kwarg_types, convert_types, *args, **kwargs):
return function(*args, **kwargs)

@wraps(function)
def wrapper(*args, **kwargs):
def wrapper(*args, _auto_inputs_transform=True, **kwargs):
if not _auto_inputs_transform: # Possibility to escape wrapping at call level
return function(*args, **kwargs)
return _wrapper(kwarg_types, convert_types, *args, **kwargs)

return wrapper
Expand Down

0 comments on commit aecd7e8

Please sign in to comment.