Skip to content

Commit

Permalink
Merge pull request #158 from lsst/tickets/DM-45226
Browse files Browse the repository at this point in the history
DM-45226: Modify nan/inf usage to support numpy 2.0
  • Loading branch information
timj authored Jul 17, 2024
2 parents c222e2c + fdddc3d commit 71a520a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/lsst/faro/base/MatchedCatalogBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class MatchedBaseConfig(
)
snrMax = pexConfig.Field(
doc="Maximum SNR for a source to be included.",
dtype=float, default=np.Inf
dtype=float, default=np.inf
)
brightMagCut = pexConfig.Field(
doc="Bright limit of catalog entries to include.", dtype=float, default=10.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class PA1Config(Config):
brightSnrMax = Field(
doc="Maximum median SNR for a source to be considered bright.",
dtype=float,
default=np.Inf,
default=np.inf,
)
nMinPhotRepeat = Field(
doc="Minimum number of objects required for photometric repeatability.",
Expand Down Expand Up @@ -170,7 +170,7 @@ class PF1Config(Config):
brightSnrMax = Field(
doc="Maximum median SNR for a source to be considered bright.",
dtype=float,
default=np.Inf,
default=np.inf,
)
nMinPhotRepeat = Field(
doc="Minimum number of objects required for photometric repeatability.",
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/faro/utils/filtermatches.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def filterMatches(
if snrMin is None:
snrMin = 50.0
if snrMax is None:
snrMax = np.Inf
snrMax = np.inf
if extended is None:
extended = False
if doFlags is None:
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/faro/utils/prefilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def preFilter(
if snrMin is None:
snrMin = 50.0
if snrMax is None:
snrMax = np.Inf
snrMax = np.inf
if extended is None:
extended = False

Expand Down
2 changes: 1 addition & 1 deletion python/lsst/faro/utils/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class SNRSelector(DataFrameAction):
snrMax = Field(
doc="The maximum S/N threshold to remove sources with.",
dtype=float,
default=np.Inf
default=np.inf
)
selectorBandType = ChoiceField(
doc="Type of selection to do options are current band or static selection",
Expand Down

0 comments on commit 71a520a

Please sign in to comment.