Skip to content

Commit

Permalink
fix some import problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Alan Weaver committed Nov 14, 2015
1 parent 907a9c7 commit 4e605c8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pydl/photoop/tests/test_photoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ def setup(self):
def teardown(self):
pass

def test_sdss_calibv():
from numpy.testing import assert_allclose
from .. import sdss_calibv
def test_sdss_calibv(self):
assert np.allclose(0.2650306748466258, sdss_calibv())

def test_unwrap_objid():
objid = unwrap_objid(array([1237661382772195474]))
def test_unwrap_objid(self):
objid = unwrap_objid(np.array([1237661382772195474]))
assert objid.skyversion == 2
assert objid.rerun == 301
assert objid.run == 3704
Expand All @@ -36,4 +34,4 @@ def test_unwrap_objid():
assert objid.frame == 91
assert objid.id == 146
with raises(ValueError):
objid = unwrap_objid(array([3.14159]))
objid = unwrap_objid(np.array([3.14159]))

0 comments on commit 4e605c8

Please sign in to comment.