-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extra keyword arguments to find_bad_channels_maxwell
, notch_filter
, and filter_data
; bugfix compute_rank channel types
#1061
base: main
Are you sure you want to change the base?
Conversation
allow for config and ctc to be set to None
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…ter`, and `filter_data`
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, I left a few comments
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I haven't actually looked at the test cases
This reverts commit 28d5988.
@@ -0,0 +1,40 @@ | |||
"""MNE Sample Data: M/EEG combined processing.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of things here:
-
ds000248
is not our fastest dataset to run tests for. For this and other similar extensions, it's best if possible to change some existing config if possible. If not possible (which should be fairly rare), then we should add one that executes as quickly as possible. -
In the future, when we do want to add a new test config (since I don't think we need to here), changes need to be made to
.circleci/config.yml
to get it to actually run. You can see that the new config here wasn't run:
With this in mind, I think in a previous PR you also added another config, is there a dataset that runs quicker that you could add a config for instead of ds000248
? You can see the timings here
and you can cross-ref with the ones listed as being MEG but not using maxfilter here:
https://mne.tools/mne-bids-pipeline/stable/examples/examples.html#demonstrated-features
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is super helpful, thanks. makes sense the that goal is coverage not isolating issues. revising this now, but running into weird issues in my local install (below).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put the tests on ds004229
Co-authored-by: Eric Larson <[email protected]>
@larsoner when I run my tests locally, this line doesn't work: mne-bids-pipeline/mne_bids_pipeline/_config_utils.py Lines 458 to 464 in 30c7798
For The older method works fine: BIDSPath(subject=subject,
session=session,
suffix="meg",
datatype="meg",
root=config.bids_root,
).meg_calibration_fpath But -- this should mean that more of the tests should be failing, because the default for failing to find this path is to raise an error. |
It must just be something funny in my install; I'll reinstall my environment. Maybe worth having an environment/requirement spec. |
- move tests from `ds000248_extra_kws` and `ds000248_mf` to `ds000248` - remove `ds000248_extra_kws` and `ds000248_mf`
Once we switch to uv, we will provide a lock file. |
uv looks cool |
Sorry there are so many commits, I had copied this branch from the branch I did the other PR on (lessons learned).
find_bad_channels_maxwell
,notch_filter
, andfilter_data
.None
, since this is allow formethod="spectrum_fit"
compute_rank
that allows formag
sensors, rather thanmeg
sensors (sorry this is tangential). This was breaking for OPM, which only hasmag
.I haven't added any checking for whether these keyword arguments overlap with existing arguments, because the MNE functions already will throw an error if you try to give them multiple values.
Before merging …
docs/source/dev.md.inc
)