mne-tools / mne-bids-pipeline

Automatically process entire electrophysiological datasets using MNE-Python.
https://mne.tools/mne-bids-pipeline/
BSD 3-Clause "New" or "Revised" License
140 stars 67 forks source link

MAINT: Validate inputs #766

Closed larsoner closed 1 year ago

larsoner commented 1 year ago

Pydantic would then be a second step, where we can actually validate the input

Originally posted by @hoechenberger in https://github.com/mne-tools/mne-bids-pipeline/issues/646#issuecomment-1309260129

In other words, we should use pydantic (maybe) to validate inputs to the extent possible. Ideally we could get rid of _validate_type and _check_option usage, too.