ssec / sift

A visualization application for satellite imagery
http://sift.ssec.wisc.edu/
GNU General Public License v3.0
46 stars 14 forks source link

Fix prints to stdout with stderr or warnings or removal #344

Closed djhoese closed 1 year ago

djhoese commented 1 year ago

We need to stop printing things to stdout, especially on initialization/GUI startup. Warnings should be used for warnings or as a last resort stderr should be used instead of stdout. Additionally, all on-import things in uwsift/__init__.py should really be moved to nearer to the argument parsing (GUI creation/startup). Similarly, access to config items should be done at use time not import time. These things are not fixed as part of this PR but FIXMEs were added.

CC @strandgren @ameraner

For the record, I needed to remove these print messages because it was stopping me from doing bash things like version=$(python -c "import uwsift; print(uwsift.__version__)") which is used in the conda-pack build scripts.