Skip to content

Commit

Permalink
Merge pull request #344 from OHBA-analysis/wrapped_func
Browse files Browse the repository at this point in the history
fix bug when no default args are specified in user func
  • Loading branch information
matsvanes authored Sep 8, 2024
2 parents f1a48d4 + 3d44a46 commit 7067a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osl/source_recon/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def run_src_chain(
)
def wrapped_func(**kwargs):
args, _, _, defaults = inspect.getargspec(func)
args_with_defaults = args[-len(defaults):]
args_with_defaults = args[-len(defaults):] if defaults is not None else []
kwargs_to_pass = {}
for a in args:
if a in kwargs:
Expand Down

0 comments on commit 7067a7b

Please sign in to comment.