Skip to content

Commit

Permalink
return empty ssSourceData rather than nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerenjie committed Oct 30, 2024
1 parent c174d7b commit 112473f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/lsst/ap/association/ssoAssociation.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ def run(self, diaSourceCatalog, solarSystemObjects, exposure):
ssoAssocDiaSources=pd.DataFrame(columns=diaSourceCatalog.columns),
unAssocDiaSources=diaSourceCatalog,
nTotalSsObjects=0,
nAssociatedSsObjects=0)
nAssociatedSsObjects=0,
ssSourceData = pd.DataFrame(ssSourceData,

Check failure on line 124 in python/lsst/ap/association/ssoAssociation.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E251

unexpected spaces around keyword / parameter equals

Check failure on line 124 in python/lsst/ap/association/ssoAssociation.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E251

unexpected spaces around keyword / parameter equals

Check failure on line 124 in python/lsst/ap/association/ssoAssociation.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

F821

undefined name 'ssSourceData'

Check failure on line 124 in python/lsst/ap/association/ssoAssociation.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

W291

trailing whitespace
columns=["ssObjectId", "obs_position", "obj_position",
"residual_ras", "residual_decs"])

Check failure on line 126 in python/lsst/ap/association/ssoAssociation.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E128

continuation line under-indented for visual indent
)

Check failure on line 127 in python/lsst/ap/association/ssoAssociation.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E123

closing bracket does not match indentation of opening bracket's line
else:
self.log.debug("Matching solar system objects:\n%s", maskedObjects)
self.log.info("Attempting to associate %d objects...", nSolarSystemObjects)
Expand Down

0 comments on commit 112473f

Please sign in to comment.