weixin_39747577 2020-11-20 20:17
浏览 0

All NumPy warnings should be raised

With [2050] I managed to run all tests without any errors raised, but there are a few warnings which imho didn't show up on Python 2.6.x: {{{ ...

test_mergePreviews2 (obspy.core.tests.test_preview.UtilTestCase) ... Warning: invalid value encountered in maximum ok

test_packSEGYData (obspy.segy.tests.test_segy.SEGYTestCase) ... Warning: divide by zero encountered in log10 Warning: invalid value encountered in divide Warning: invalid value encountered in less ok

test_readAndWriteSEGY (obspy.segy.tests.test_segy.SEGYTestCase) ... Warning: divide by zero encountered in log10 Warning: invalid value encountered in divide Warning: invalid value encountered in less ok

test_array_transff_freqslowness (obspy.signal.tests.test_sonic.SonicTestCase) ... d:\workspace\obspy\obspy.signal\trunk\obspy\signal\array_analysis.py:1134: ComplexWarning: Casting complex values to real discards the imaginary part - coords[l, 1] * sy) * 2 * np.pi * f)) ok

test_array_transff_wavenumber (obspy.signal.tests.test_sonic.SonicTestCase) ... d:\workspace\obspy\obspy.signal\trunk\obspy\signal\array_analysis.py:1080: ComplexWarning: Casting complex values to real discards the imaginary part coords[k, 0] * kx + coords[k, 1] * ky)) ok

...

Ran 432 tests in 20.936s

OK

}}}

该提问来源于开源项目:obspy/obspy

  • 写回答

8条回答 默认 最新

  • weixin_39747577 2020-11-20 20:17
    关注

    [barsch] After reinstalling a new python version on my laptop the same issues occured on a 2.6.6 system - so its not issue with python 2.7 instead its depending on the used compiler for numpy/scipy/matplotlib. I'm not sure how to deal with that warnings ...

    评论

报告相同问题?