Skip to content

Commit 91a1968

Browse files
committed
Flake8 fixes in loadReferenceObjects.py
1 parent 46f3599 commit 91a1968

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

python/lsst/meas/algorithms/loadReferenceObjects.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ def applyProperMotions(self, catalog, epoch):
248248
self.log.debug("No epoch provided: not applying proper motion corrections to refcat.")
249249
return
250250

251-
# Warn/raise for a catalog in an incorrect format, if epoch was specified.
251+
# Warn/raise for a catalog in an incorrect format, if epoch was
252+
# specified.
252253
if "pm_ra" in catalog.schema:
253254
pm_ra_radians = False
254255
field = catalog.schema["pm_ra"].asField()
@@ -306,10 +307,10 @@ def _remapReferenceCatalogSchema(refCat, *, anyFilterMapsToThis=None,
306307
mapper.editOutputSchema().disconnectAliases()
307308

308309
if centroids:
309-
# Add and initialize centroid and hasCentroid fields (these are
310-
# added after loading to avoid wasting space in the saved catalogs).
311-
# The new fields are automatically initialized to (nan, nan) and
312-
# False so no need to set them explicitly.
310+
# Add and initialize centroid and hasCentroid fields (these
311+
# are added after loading to avoid wasting space in the saved
312+
# catalogs). The new fields are automatically initialized to
313+
# (nan, nan) and False so no need to set them explicitly.
313314
mapper.editOutputSchema().addField("centroid_x", type=float, doReplace=True)
314315
mapper.editOutputSchema().addField("centroid_y", type=float, doReplace=True)
315316
mapper.editOutputSchema().addField("hasCentroid", type="Flag", doReplace=True)
@@ -681,11 +682,12 @@ class which intersect or are contained within the specified region. The
681682
regionLat.getA().asDegrees(), regionLat.getB().asDegrees())
682683
if filtFunc is None:
683684
filtFunc = _FilterCatalog(region)
684-
# filter out all the regions supplied by the constructor that do not overlap
685+
# Filter out all the regions supplied by the constructor that do not
686+
# overlap.
685687
overlapList = []
686688
for dataId, refCat in zip(self.dataIds, self.refCats):
687-
# SphGeom supports some objects intersecting others, but is not symmetric,
688-
# try the intersect operation in both directions
689+
# SphGeom supports some objects intersecting others, but is not
690+
# symmetric, try the intersect operation in both directions.
689691
try:
690692
intersects = dataId.region.intersects(region)
691693
except TypeError:

0 commit comments

Comments
 (0)