deeptools / pyBigWig

A python extension for quick access to bigWig and bigBed files
MIT License
212 stars 48 forks source link

Suppress logging/error messages #123

Open EricR86 opened 2 years ago

EricR86 commented 2 years ago

Is it possible to suppress the logging and error messages? Using this as a library I would rather catch errors by exception than seeing a message.

Handling known error cases in general will always end up with extra output when potentially none is wanted. For example, if I'm attempting to open a bigWig file and fallback to another format, it will always create unnecessary output and make it difficult to parse any output that I would want to track for testing or otherwise.

dpryan79 commented 2 years ago

Sure, that's possible. Not sure when I'll get around to this, but it's certainly doable.

jamestwebber commented 11 months ago

Any update on this? This is particularly annoying in a Jupyter notebook where we get all of the error messages (which are just from trying different formats) before the rendering.