Skip to content
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

How to silence warnings in mne_bids.write_raw_bids() #1208

Open
DominiqueMakowski opened this issue Dec 9, 2023 · 3 comments
Open

How to silence warnings in mne_bids.write_raw_bids() #1208

DominiqueMakowski opened this issue Dec 9, 2023 · 3 comments
Milestone

Comments

@DominiqueMakowski
Copy link

Describe the problem

mne_bids.write_raw_bids() throws several warnings at each iterations that doesn't seem to be silencable using verbose=0 or verbose=False

image

Some of them also seem unnecessary (?), like RuntimeWarning: Converting data files to BrainVision format

Describe your solution

Either throw warnings once a session (pandas style)?

Describe possible alternatives

Perhaps convert some warnings into messages (e.g., the one about events id, about floats etc)

Additional context

No response

Copy link

welcome bot commented Dec 9, 2023

Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴🏽‍♂️

@sappelhoff
Copy link
Member

Thanks for the report!

I think we should allow controlling these messages via the verbose parameter:

image

... see: mne.verbose()

And we need to add a verbose parameter to write_raw_brainvision in pybv: https://pybv.readthedocs.io/en/stable/generated/pybv.write_brainvision.html#pybv.write_brainvision

@sappelhoff sappelhoff modified the milestones: 0.14, 0.15 Dec 9, 2023
@sappelhoff
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants