-
Notifications
You must be signed in to change notification settings - Fork 34
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
Use the MNE logger to set the verbosity #105
Comments
oh, please install and use the development version for now:
as we note in the README: https://github.com/sappelhoff/pyprep#installation We are preparing for a bigger release, and the current development version fixes many inaccuracies and problems that are still there in the 0.3.1 release. cc @a-hurst @yjmantilla should we maybe just release in the current state and do the remaining features in 0.5 or 0.4.1 or so? I am concerned that too many people will use a standard pip install and end up with version 0.3.1 Regarding your proposal @mscheltienne --> yes, I think we could switch to using the MNE logger 🤔 then you could easily set any log level you want. But it's gonna be a bit of work to consistently apply that throughout the code base. |
@sappelhoff Thank you for your concern, and as I was posting this issue for a logger/verbosity, I did read quickly through the other issues, and I have now upgraded to the latest development version. Logger from MNE looks like the way to go. Of course, this is not urgent, but keep it in mind for a future release 😉. |
@sappelhoff I think releasing a version 0.3.5 or 0.4 in its current state is probably fine! I'm busy with the first semester of my PhD so I can't contribute too much right now, but our reading week is coming up in November and I can set aside some time to finally finish PR #99. One thing to note is that upstream PREP has fixed one of the bugs we reported so |
ok 👍 I'll just quietly release 0.4 now, so that people who download from pypi/conda-forge will end up with the good version. We can then make a bigger announcement and celebrating when we picked off the remaining points on the list. |
@sappelhoff For the logger, do you want to directly use the MNE one with |
Hey @mscheltienne, given that MNE will always remain a core dependency of this package, I'd like to use the MNE logger for simplicity :-) A PR to add this would be very welcome. |
I have been using PyPREP a bit (version 0.3.1, pip install) and I really like it for now.
Would it be possible to add a verbose argument to limit the prints? Alternatively, moving the print to a logger with a
set_log_level
function would work out too.Example:
print("Executing RANSAC\nThis may take a while, so be patient...")
When running a preprocessing pipeline with several steps, one of which is PyPREP, the relevant logging from the pipeline can be completely overwhelmed by the prints from PyPREP, especially if you run it as I do on e.g. 40 cores at once.
The text was updated successfully, but these errors were encountered: