Skip to content

Commit

Permalink
Reduce warning from TreecorrConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
PFLeget committed Oct 23, 2024
1 parent b3b2385 commit d346ef8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@

_LOG = logging.getLogger(__name__)


# TO DO: Remove TreecorrConfig in here for next major release (DM-47072)
@deprecated(

Check failure on line 51 in python/lsst/analysis/tools/actions/vector/calcRhoStatistics.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E302

expected 2 blank lines, found 1
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 +174,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 d346ef8

Please sign in to comment.