jbkinney / logomaker

Software for the visualization of sequence-function relationships
MIT License
179 stars 34 forks source link

[PATCH] warn instead of print for default color black message #29

Open ruxi opened 1 year ago

ruxi commented 1 year ago

Per guidance on issue #18, I made changes to error_handling.check to handle both error exception and warnings. The single stray print statement in colors.py has been changed to check to be consistent with the rest of the package. I ran the functional_tests_logomaker.py script - everything passed.

What does this change do?

"default color black" message is redirected to stderr instead of stdout. Users can use a one-liner from the warnings module to suppress this output which is useful for report generation.