Closed SophieHerbst closed 5 months ago
Not sure what to do about the tests. The doc consistency I don't understand and the ubuntu-latest seems to be using the latest stable mne where the changes in report.add_epochs are not yet included? Also, there might be further changes necessary with the reworking you did on the ICA?
Also, it turns out that in order to use the rejection criteria from my config, I had to deal with the different scaling between rejection and plotting commands:
# add image kwargs for report
report_add_epochs_image_kwargs = {
"grad": {"vmin": 0, "vmax": reject["grad"]*1e15},
"mag": {"vmin": 0, "vmax": reject["mag"]*1e15},
}
For the consistency we should merge https://github.com/mne-tools/mne-bids-pipeline/pull/863 first probably, it should fix things for you I think
We should maintain compat with latest MNE stable, so you'll need to inspect.getfullargspec(report.add_epochs)
to determine whether or not to set image_kwargs
I think
I think I need some help here
Thank you @larsoner I ran it again on my data and I am very happy with it now.
Thanks @SophieHerbst and @larsoner!!!
Responds to issue #848
Now that mne has been updated, we can pass image_kwargs to report.add_epochs. It works when I set the limits to the rejection limits in the config, but I cannot get it right when setting image_kwargs to None as per default.