bemobil_mne.preproc.sig_params#
- bemobil_mne.preproc.sig_params(func, **kwargs)[source]#
Return only the kwargs that match func’s signature.
Useful for recording exactly which parameters were forwarded to an MNE function in provenance metadata without capturing irrelevant extras.
- Parameters:
- func
callable() The function whose signature to filter against.
- **kwargs
All keyword arguments that were (or will be) passed to func.
- func
- Returns:
dictSubset of kwargs whose keys appear in func’s parameter list.