BienfaitKI / polus-dev

MIT License
5 stars 25 forks source link

use `warnings` module as opposed to logging warnings. #6

Open SauravMaheshkar opened 2 months ago

SauravMaheshkar commented 2 months ago

We could use the warnings module to raise either Warning or RuntimeWarning as opposed to the custom warnings in:

https://github.com/BienfaitKI/polus-dev/blob/2c010f74548d0d2621289e7c71779fab8d014ff3/src/polus/utils/logging.py#L8-L28

suzanneEmbury commented 1 month ago

Sounds interesting, @SauravMaheshkar . I've not used that module before. Maybe you could give a quick summary of what the benefits of using it, instead of logging, would be?