This package resets warnings globally here:
|
# import h5py |
|
import warnings |
|
warnings.simplefilter(action='ignore', category=FutureWarning) |
|
import h5py |
|
warnings.resetwarnings() |
In running my dependent package, I'd like to manage other warnings, but they're reset when trigger this import
Alternatively, this package could disable these warnings only for the scope of this import
import warnings
with warnings.catch_warnings():
warnings.simplefilter(action="ignore", category=FutureWarning)
import h5py
This package resets warnings globally here:
ml_ms4alg/ml_ms4alg/ms4alg.py
Lines 13 to 17 in 84cbc2e
In running my dependent package, I'd like to manage other warnings, but they're reset when trigger this import
Alternatively, this package could disable these warnings only for the scope of this import