Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsaunders committed Jul 18, 2023
1 parent d3cd472 commit e15144c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions python/lsst/pipe/tasks/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,29 +555,23 @@ def run(self, exposure, exposureIdInfo=None, background=None,
detRes = self.detection.run(table=table, exposure=exposure,
doSmooth=True)
sourceCat = detRes.sources
print('Get Sources', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5])
if detRes.background:
for bg in detRes.background:
background.append(bg)
print('Back', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5])
if self.config.doSkySources:
skySourceFootprints = self.skySources.run(mask=exposure.mask, seed=idGenerator.catalog_id)
if skySourceFootprints:
for foot in skySourceFootprints:
s = sourceCat.addNew()
s.setFootprint(foot)
s.set(self.skySourceKey, True)
print('Sky Source', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5])
if self.config.doDeblend:
self.deblend.run(exposure=exposure, sources=sourceCat)
print('Deblend', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5])
self.measurement.run(
measCat=sourceCat,
exposure=exposure,
exposureId=idGenerator.catalog_id,
)
print('Meas', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5],
sourceCat['base_SdssCentroid_xErr'][:5], sourceCat['coord_raErr'][:5])
if self.config.doApCorr:
apCorrMap = exposure.getInfo().getApCorrMap()
if apCorrMap is None:
Expand All @@ -589,7 +583,7 @@ def run(self, exposure, exposureIdInfo=None, background=None,
apCorrMap=apCorrMap,
)
self.catalogCalculation.run(sourceCat)
print('CatCalc', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5])

self.setPrimaryFlags.run(sourceCat)

if icSourceCat is not None and \
Expand Down Expand Up @@ -623,8 +617,6 @@ def run(self, exposure, exposureIdInfo=None, background=None,
self.log.warning("Unable to perform astrometric calibration for %r but "
"requireAstrometry is False: attempting to proceed...",
idGenerator)
print('post astrom', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5],
sourceCat['base_SdssCentroid_xErr'][:5], sourceCat['coord_raErr'][:5])

# compute photometric calibration
if self.config.doPhotoCal:
Expand Down Expand Up @@ -660,7 +652,7 @@ def run(self, exposure, exposureIdInfo=None, background=None,
exposure=exposure,
exposureId=idGenerator.catalog_id,
)
print('post cal', sourceCat['base_SdssCentroid_x'][:5], sourceCat['coord_ra'][:5])

if self.config.doComputeSummaryStats:
summary = self.computeSummaryStats.run(exposure=exposure,
sources=sourceCat,
Expand Down

0 comments on commit e15144c

Please sign in to comment.