Skip to content
Snippets Groups Projects
Unverified Commit 99f28686 authored by Jeremy M Fee's avatar Jeremy M Fee Committed by GitHub
Browse files

Merge pull request #213 from arigdon-usgs/XYZtestFix

Fixed logic in XYZ test under unneccessary channels
parents eec55ab4 e8443972
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ before_install:
- conda info -a
install:
- conda config --add channels conda-forge
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 coverage webtest
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 coverage webtest 'icu=58.*'
- source activate test-environment
script:
- flake8 --config=.flake8 bin/ geomagio/ test/
......
......@@ -54,7 +54,7 @@ def test_xyzalgorithm_limited_channels():
# d has `count` values (same as input)
assert_equals(len(d.data), count)
# d has no NaN values
assert_equals(len(d[d == np.NaN]), 0)
assert_equals(np.isnan(d).any(), False)
def test_xyzalgorithm_uneccesary_channel_empty():
......@@ -83,4 +83,4 @@ def test_xyzalgorithm_uneccesary_channel_empty():
# d has 2 values (same as input)
assert_equals(len(d.data), 2)
# d has no NaN values
assert_equals(len(d[d == np.NaN]), 0)
assert_equals(np.isnan(d).any(), False)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment