deeptools / pyBigWig

A python extension for quick access to bigWig and bigBed files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suppress logging/error messages

EricR86 opened this issue · comments

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.

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

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.