Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reduce number of deprecation warnings
There is (arguably) a bug in Python's warnings module, such that every use of warnings.catch_warnings erases all memory of which warnings have been displayed. This breaks the "default" setting of the warnings filter which is supposed to ensure that each warning is only displayed once per (module, line). So here, we disuse catch_warnings. See https://bugs.python.org/issue29672
- Loading branch information