Skip to content

refactor: remove rho-stats from shapepipe (closes #710)#715

Open
cailmdaley wants to merge 1 commit intodevelopfrom
refactor/remove-rho-stats
Open

refactor: remove rho-stats from shapepipe (closes #710)#715
cailmdaley wants to merge 1 commit intodevelopfrom
refactor/remove-rho-stats

Conversation

@cailmdaley
Copy link
Copy Markdown
Contributor

Rho-stats are obsolete inside ShapePipe — superseded by sp_validation / cosmo_val, which use shear_psf_leakage directly. Per @martinkilbinger's comment on #657.

The mccd_plots_runner module stays alive for meanshapes plots; only the rho-stats branch is removed. The stile treecorr-5 incompatibility (#710) is fixed by removal.

Changes

Area Change
mccd_plot_utilities.py 1675 → 683 lines (-992): removed rho_stats(), new_BaseCorrelationFunctionSysTest, Rho1SysTest, DESRho{2..5}SysTest, get_params_rho, neg_dash, and related imports
mccd_plots_runner.py 183 → 117 lines (-66): removed the rho-stats branch, stile/treecorr imports, has_stile/has_treecorr guards
mccd_package/__init__.py Dropped PLOT_RHO_STATS/RHO_STATS_STYLE/RHO_STATS_YLIM_{L,R} docstring entries
Dependencies dropped stile, shear_psf_leakage, treecorr from Dockerfile, environment.yml, environment-dev.yml, install_shapepipe, and python_example_runner depends list
Example configs 10 edited: 8 kept mccd_plots_runner for meanshapes; 2 (config_Pl_psfex{,_conv}.ini, which had PLOT_MEANSHAPES = False) retired the runner entirely

Questions for @martinkilbinger

Should meanshapes also be deleted? Kept it per your literal "option 1, delete" on #657, but if meanshapes is also obsolete by the same cosmo_val reasoning, happy to nuke the whole mccd_plots_runner in a follow-up — just say the word.

Treecorr: after this PR, no runtime code in shapepipe imports treecorr. Dropped it from deps alongside stile. Flagging in case any downstream production code relies on it being in the shapepipe container.

Disclosure

Authored in collaboration with Claude. Code removal and config edits were done by sub-agents; I reviewed the diffs before committing. Docker image build was not tested locally — relying on CI for that.

Closes #710. Progresses #657.

Per #657: rho-stats are obsolete in shapepipe and have been superseded
by sp_validation / cosmo_val, which use shear_psf_leakage directly.

Removes:
- rho_stats() + Rho{1..5}SysTest classes (~990 lines in
  mccd_plot_utilities.py) and the rho-stats branch of
  mccd_plots_runner
- stile, shear_psf_leakage, and treecorr as dependencies (Dockerfile,
  environment.yml, environment-dev.yml, install_shapepipe, and the
  python_example_runner depends list)
- PLOT_RHO_STATS, RHO_STATS_STYLE, RHO_STATS_YLIM_{L,R} config keys
  from 10 example configs; mccd_plots_runner retained where needed
  for meanshapes

Closes #710 (treecorr-5 incompatibility, fixed by removal).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stile v0.1 import fails: 'treecorr.corr2' removed in newer treecorr

1 participant