Skip to content

Commit

Permalink
properly remove nans
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-neal committed Nov 5, 2017
1 parent 59f7474 commit 17fca4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spectrum_overload/test/test_Spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ def test_normalization_method_match_degree(method, degree):
x = np.arange(1000)
y = np.arange(1000)
s = Spectrum(xaxis=x, flux=y)
named_method = s.normalize(method=method)
named_method = named_method = s.normalize(method=method)
named_method.remove_nans() # hack for geting to run on < py34
poly_deg = s.normalize(method='poly', degree=degree)
poly_deg.remove_nans() # hack for getting to pass on < py 34
poly_deg = poly_deg.remove_nans() # hack for getting to pass on < py 34
assert np.allclose(named_method.flux, poly_deg.flux)

0 comments on commit 17fca4d

Please sign in to comment.