Skip to content

Commit

Permalink
Add explicit cut on non-finite positions.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Apr 4, 2023
1 parent 583ca07 commit e2d3f5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/pipe/tasks/isolatedStarAssociation.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def setDefaults(self):
source_selector.doUnresolved = True
source_selector.doSignalToNoise = True
source_selector.doIsolated = True
source_selector.doRequireFiniteRaDec = True

source_selector.signalToNoise.minimum = 10.0
source_selector.signalToNoise.maximum = 1000.0
Expand All @@ -169,6 +170,9 @@ def setDefaults(self):
source_selector.unresolved.maximum = 0.5
source_selector.unresolved.name = 'extendedness'

source_selector.requireFiniteRaDec.raColName = self.ra_column
source_selector.requireFiniteRaDec.decColName = self.dec_column


class IsolatedStarAssociationTask(pipeBase.PipelineTask):
"""Associate sources into isolated star catalogs.
Expand Down

0 comments on commit e2d3f5b

Please sign in to comment.