salilab / pmi

Python Modeling Interface
https://integrativemodeling.org/nightly/doc/ref/namespaceIMP_1_1pmi.html
11 stars 11 forks source link

Use Python warnings module to report warnings #250

Closed benmwebb closed 5 years ago

benmwebb commented 5 years ago

Currently plain print is used to print any PMI warnings, often (but not always) with a WARNING> prefix. Replace all such uses with use of the Python warnings module and define custom warning types. This should make it easier to ignore certain warning types, or to promote them to errors.