Closed matsvanes closed 1 month ago
source_recon batch processing with supplied extra_funcs fails when no default input parameters are specified:
extra_funcs
https://github.com/OHBA-analysis/osl/blob/main/osl/source_recon/batch.py#L204
args, _, _, defaults = inspect.getargspec(func) args_with_defaults = args[-len(defaults):]
suggested fix: args_with_defaults = args[-len(defaults):] if defaults is not None else []
args_with_defaults = args[-len(defaults):] if defaults is not None else []
What do you think @cgohil8 ?
Looks fine, if you tested that with/without other functions in the source config and it works, go for it.
Fixed.
source_recon batch processing with supplied
extra_funcs
fails when no default input parameters are specified:https://github.com/OHBA-analysis/osl/blob/main/osl/source_recon/batch.py#L204
suggested fix:
args_with_defaults = args[-len(defaults):] if defaults is not None else []
What do you think @cgohil8 ?