neurodata / mgcpy-old

MGCPY WILL NO LONGER BE UPDATED. THE NEW REPO CAN BE FOUND HERE:
https://github.com/neurodata/hyppo
Apache License 2.0
31 stars 45 forks source link

Make warnings optional #148

Open eigenvivek opened 5 years ago

eigenvivek commented 5 years ago

im using mgc to do multiple independence tests

when the pvalue is greater than 0.05, mgc issues a warning (see code here)

i've tried suppressing this warning, but it's temperamental. can you please add a flag so i can suppress this warning?

tathey1 commented 5 years ago

bump

bdpedigo commented 5 years ago

+1

anibalsolon commented 5 years ago

i would say to use the logging module (instead of warnings) to print the message and let the user supress the message by configuring the logging level :)