Skip to content

Commit

Permalink
Fixed some linting errors in test_dia_collection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Sep 7, 2017
1 parent c68af80 commit 56ffcee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_dia_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_init(self):
""" Test that we can properly create a DIAObjectCollection from a list
of DIAObjects.
"""
obj_list = create_test_dia_objects(n_objects=1, n_sources=1,
obj_list = create_test_dia_objects(n_objects=1, n_sources=1,
start_id=0)
obj_collection = DIAObjectCollection(obj_list)

Expand All @@ -121,9 +121,9 @@ def test_append_and_update(self):
obj_list = create_test_dia_objects(n_objects=1, n_sources=1, start_id=0)
obj_collection = DIAObjectCollection(obj_list)

new_dia_obj = create_test_dia_objects(n_objects=1,
n_sources=1,
start_id=1,
new_dia_obj = create_test_dia_objects(n_objects=1,
n_sources=1,
start_id=1,
start_angle_degrees=0.1)[0]
obj_collection.append(new_dia_obj)
self.assertFalse(obj_collection.is_updated)
Expand All @@ -149,10 +149,10 @@ def test_score_and_match(self):
"""
# Create a set of DIAObjects that contain only one DIASource
obj_collection = DIAObjectCollection(
create_test_dia_objects(n_objects=4,
n_sources=1,
create_test_dia_objects(n_objects=4,
n_sources=1,
start_id=0,
start_angle_degrees=0.0,
start_angle_degrees=0.0,
scatter_arcsec=-1.))
# We create a set of sources that should associate to each of
# our current DIAObjects in the collection. We also create
Expand All @@ -168,7 +168,7 @@ def test_score_and_match(self):
0.1 * src_idx,
-1)
score_struct = obj_collection.score(
src_cat, afwGeom.Angle(1.0, units=afwGeom.arcseconds))
src_cat, afwGeom.Angle(1.0, units=afwGeom.arcseconds))

self.assertFalse(np.isfinite(score_struct.scores[-1]))
for src_idx in range(4):
Expand Down

0 comments on commit 56ffcee

Please sign in to comment.