Skip to content

Weak lensing: decouple from master, refactor descwl/anacal workflow#1104

Merged
jeff-regier merged 27 commits into
masterfrom
tw/weak_lensing
Jan 9, 2026
Merged

Weak lensing: decouple from master, refactor descwl/anacal workflow#1104
jeff-regier merged 27 commits into
masterfrom
tw/weak_lensing

Conversation

@timwhite0

Copy link
Copy Markdown
Collaborator
  • Separated WeakLensingNet (which worked for both DC2 and descwl) into MassMapEncoder (DC2) and ScalarShearEncoder (descwl).
  • Created standalone versions of variational_dist, cached_dataset, dc2, utils to eliminate reliance on master.
  • Simplified descwl and AnaCal workflow. Previously separate versions of the images were stored for NPE and AnaCal, now a single version of each simulation setting is stored in /nfs/turbo. Some steps for generating the final figures for each setting were not previously committed; now we demonstrate the full workflow in descwl/results.
  • Reorganized and renamed configs and notebooks in the dc2 and descwl subfolders. Ran all notebooks. Old notebooks and scripts are marked as deprecated.
  • Rewrote README with updated usage instructions.

Our code for generating descwl-shear-sims images is in the image_generation folder in our descwl-shear-sims fork.

Future development of this case study will happen in blissWL.

@codecov

codecov Bot commented Jan 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.64%. Comparing base (39faef5) to head (18d50bb).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1104   +/-   ##
=======================================
  Coverage   80.64%   80.64%           
=======================================
  Files          22       22           
  Lines        3111     3111           
=======================================
  Hits         2509     2509           
  Misses        602      602           
Flag Coverage Δ
unittests 80.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeff-regier jeff-regier merged commit a778938 into master Jan 9, 2026
3 checks passed
@jeff-regier jeff-regier deleted the tw/weak_lensing branch January 9, 2026 18:25
jeff-regier pushed a commit that referenced this pull request Jun 10, 2026
…1104)

* Refactor case_studies/weak_lensing

* Fix refactor bug and move wl/cached_dataset

* Update dc2 config

* Allow count splits instead of percent splits

* Remove deprecated files for generating encoder input

* Script for running AnaCal

* Update anacal script

* Ignore anacal psf/mask/etc during NPE training

* Update config

* Move some descwl notebooks to deprecated folder

* Deprecated scripts

* Rename and reorganize descwl

* Rename and reorganize DC2

* Rename descwl images notebook

* Rename config

* Update config paths

* Move descwl ckpt

* Update descwl NPE credible intervals script

* Update descwl NPE credible intervals script

* Speed up AnaCal and run on same test set as NPE

* Get rid of as_completed in AnaCal multiprocessing

* Update descwl credible intervals notebook

* Fix and run all DC2 notebooks

* Update descwl image notebook

* Update descwl scatterplots

* Update README

* ruff + update gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants