Skip to content

Commit

Permalink
Merge pull request #297 from lsst/tickets/DM-47013
Browse files Browse the repository at this point in the history
DM-47013: Decrease amount of warning from TreecorrConfig in analysis_tool
  • Loading branch information
PFLeget authored Oct 23, 2024
2 parents b3b2385 + b35c5ec commit 4bc1825
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
_LOG = logging.getLogger(__name__)


# TO DO: Remove TreecorrConfig in here for next major release (DM-47072)
@deprecated(
reason=(
"TreecorrConfig is no longer a part of analysis_tools (DM-45899)"
"TreecorrConfig is no longer a part of analysis_tools (DM-45899). "
"Please use lsst.meas.algorithms.treecorrUtils.TreecorrConfig instead."
),
version="v28.0",
Expand Down Expand Up @@ -174,13 +175,13 @@ class CalcRhoStatistics(KeyedDataAction):
},
)

treecorr = ConfigField[TreecorrConfig](
treecorr = ConfigField[TreecorrConfigNew](
doc="TreeCorr configuration",
)

def setDefaults(self):
super().setDefaults()
self.treecorr = TreecorrConfig()
self.treecorr = TreecorrConfigNew()
self.treecorr.sep_units = "arcmin"
self.treecorr.max_sep = 100.0

Expand Down

0 comments on commit 4bc1825

Please sign in to comment.