Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-9588: "validate_drp broken on cfht/hsc datasets" #34

Merged
merged 3 commits into from
Mar 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions python/lsst/validate/drp/calcsrd/amx.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from __future__ import print_function, absolute_import
from builtins import zip
from builtins import range

import numpy as np
import astropy.units as u
Expand Down Expand Up @@ -321,7 +320,7 @@ def matchVisitComputeDistance(visit_obj1, ra_obj1, dec_obj1,
j_raw = 0
j = visit_obj2_idx[j_raw]
for i in visit_obj1_idx:
while (visit_obj2[j] < visit_obj1[i]) and (j_raw < len(visit_obj2_idx)):
while (visit_obj2[j] < visit_obj1[i]) and (j_raw < len(visit_obj2_idx)-1):
j_raw += 1
j = visit_obj2_idx[j_raw]
if visit_obj2[j] == visit_obj1[i]:
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/validate/drp/matchreduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _loadAndMatchCatalogs(self, repo, dataIds, matchRadius):

calib = afwImage.Calib(calexpMetadata)

oldSrc = butler.get('src', vId, immediate=True, flags=SOURCE_IO_NO_FOOTPRINTS)
oldSrc = butler.get('src', vId, immediate=True)
print(len(oldSrc), "sources in ccd %s visit %s" %
(vId[ccdKeyName], vId["visit"]))

Expand Down