Skip to content

Commit

Permalink
Fixed bug in pessimistic_pattern_matcher_b_3D.py
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed May 4, 2017
1 parent 1ec5385 commit 87cd823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/meas/astrom/pessimistic_pattern_matcher_b_3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ class we use id to reference the position in the input reference
self._pair_id_array[ref_id, ref_id:] = sub_id_array[:, 1]
self._pair_delta_array[ref_id, ref_id:, :] = sub_delta_array
self._pair_dist_array[ref_id, ref_id:] = sub_dist_array

# Don't fill the array column wise if we are on the last object
# to avoid array overrun.
if ref_id < self._n_reference - 1:
self._pair_id_array[ref_id + 1:, ref_id] = sub_id_array[:, 1]
self._pair_id_array[ref_id + 1:, ref_id] = ref_id
self._pair_delta_array[ref_id + 1:, ref_id, :] = \
sub_delta_array
self._pair_dist_array[ref_id + 1:, ref_id] = sub_dist_array
Expand Down

0 comments on commit 87cd823

Please sign in to comment.