Closed larsoner closed 1 year ago
Already found either a usage error or documentation / type-hinting error:
mne_bids_pipeline/_config_import.py:411: in _pydantic_validate
raise ValueError(str(err)) from None
E ValueError: 1 validation error for user configuration from /home/circleci/project/mne_bids_pipeline/tests/configs/config_ERP_CORE.py
E eeg_template_montage
E Input should be a valid string [type=string_type, input_value=<DigMontage | 0 extras (h...fiducials, 343 channels>, input_type=DigMontage]
E For further information visit https://errors.pydantic.dev/2.1/v/string_type
Changing to just be eeg_template_montage = "standard_1005"
but maybe someday we want to extend support to arbitrary DigMontage...
Very nice otherwise!!
I don’t remember. Probably it fixed something with some version of MNE. You can remove it or keep it and we see what happens :)
On Tue, 15 Aug 2023 at 19:10, Eric Larson @.***> wrote:
@.**** commented on this pull request.
In mne_bids_pipeline/tests/configs/config_ERP_CORE.py https://github.com/mne-tools/mne-bids-pipeline/pull/779#discussion_r1294889663 :
@@ -50,7 +49,7 @@
Suppress "Data file name in EEG.data (sub-019_task-ERN_eeg.fdt) is incorrect..."
read_raw_bids_verbose = "error"
-eeg_template_montage = mne.channels.make_standard_montage("standard_1005") +eeg_template_montage = "standard_1005"
Ahh, doing a bit of git digging I can see #407 https://github.com/mne-tools/mne-bids-pipeline/pull/407 by @dengemann https://github.com/dengemann so it was indeed intentional... I'll add support back in
— Reply to this email directly, view it on GitHub https://github.com/mne-tools/mne-bids-pipeline/pull/779#discussion_r1294889663, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOR7CTKCTHOMVSMSRGUID3XVOURBANCNFSM6AAAAAA3QGKJGQ . You are receiving this because you were mentioned.Message ID: @.***>
Before merging …
pydantic
after adding as a dependency (2.0 seems to be the min useable version for us based on local testing)decoding_csp_times
anddecoding_csp_freqs
didn't do what we said they did (they were set once statically based on the defaults rather than being computed dynamically based on the variable values)docs/source/changes.md
)Locally it seems to work -- adding
config_validation = "foo"
toconfig_ds003392.py
for example produces:or when setting
mf_destination = "foo"
inconfig_ds003392.py
which allows a specific Literal or a FloatArrayLike:Because of the
strict=True
I suspect there will be someList
s that we will want to change toFloatArrayLike
(or create a genericCheckedArrayLike
that allows arbitrary dtypes or something) but this is maybe a good enough start!Closes #766