New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mission "clean test logs" - handles all kind of userwarnings/deprecation warnings #1888

Merged
merged 21 commits into from Sep 22, 2017
Commits
Jump to file or symbol
Failed to load files and symbols.
+6 −0
Diff settings

Always

Just for now

Viewing a subset of changes. View all

ignore some "RuntimeWarning: underflow encountered in multiply"

  • Loading branch information...
barsch authored and krischer committed Sep 13, 2017
commit 1f858f368ad9eccc1824708f214725bb3e39cb45
@@ -104,6 +104,12 @@ def setUp(self):
# some pre-computed ppsd used for plotting tests:
# (ppsd._psd_periods was downcast to np.float16 to save space)
self.example_ppsd_npz = os.path.join(PATH, "ppsd_kw1_ehz.npz")
# ignore some "RuntimeWarning: underflow encountered in multiply"
self.nperr = np.geterr()
np.seterr(all='ignore')
def tearDown(self):
np.seterr(**self.nperr)
def test_obspy_psd_vs_pitsa(self):
"""
ProTip! Use n and p to navigate between commits in a pull request.