Skip to content

Commit

Permalink
ssObjectID
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerenjie committed Oct 30, 2024
1 parent 2e863c5 commit 2641a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ap/association/mpSkyEphemerisQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import pyarrow as pa
import requests

from lsst.ap.association.utils import getMidpointFromTimespan
from lsst.ap.association.utils import getMidpointFromTimespan, objID_to_ssObjectID
from lsst.geom import SpherePoint
import lsst.pex.config as pexConfig
from lsst.utils.timer import timeMethod
Expand Down Expand Up @@ -230,7 +230,7 @@ def _mpSkyConeSearch(self, expCenter, epochMJD, queryRadius, mpSkyURL):
mpSkySsObjects['tmax'] = tmax
mpSkySsObjects['dec'] = dec
mpSkySsObjects['Err(arcsec)'] = 2
mpSkySsObjects['ssObjectId'] = [abs(hash(v)) for v in mpSkySsObjects['ObjID'].values]
mpSkySsObjects['ssObjectId'] = [objID_to_ssObjectID(v) for v in mpSkySsObjects['ObjID'].values]
nFound = len(mpSkySsObjects)

if nFound == 0:
Expand Down

0 comments on commit 2641a27

Please sign in to comment.