Skip to content

Rewrite cluster/simulator.py for small-cluster lens with PointDataset redshift CSV#77

Merged
Jammy2211 merged 1 commit intomainfrom
feature/cluster-simulator
Apr 20, 2026
Merged

Rewrite cluster/simulator.py for small-cluster lens with PointDataset redshift CSV#77
Jammy2211 merged 1 commit intomainfrom
feature/cluster-simulator

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Rewrites scripts/cluster/simulator.py as a small 5-member cluster with an NFWMCRLudlowSph dark matter host halo and 2 multiply-imaged point sources at a shared redshift. The simulator writes per-source JSONs and a single combined point_datasets.csv carrying the redshift column (new optional field from PyAutoLens #465), making the CSV the canonical hand-editable cluster input.

Scripts Changed

  • scripts/cluster/simulator.py — full rewrite. 5 main lens galaxies (SersicSph + dPIEMassSph), standalone NFWMCRLudlowSph host halo at mass_at_200 = 10^15.3, 2 source galaxies (SersicCore + Point) at z=1.0. Produces 3 multiple images per source. Writes main_lens_centres.json, host_halo_centre.json, source_centres.json, tracer.json, point_dataset_{0,1}.json, combined point_datasets.csv with redshift column, and full-grid imaging/PSF/noise FITS. Docstring section "Manual CSV Editing" explains the spreadsheet workflow.
  • config/build/no_run.yaml — removed cluster/simulator entry; script now runs in test mode and the release build.

Upstream PR

PyAutoLabs/PyAutoLens#465

Test Plan

  • Smoke tests pass for all affected workspaces

🤖 Generated with Claude Code

… redshift CSV

Small 5-member cluster + standalone NFWMCRLudlow host halo + 2 multiply-imaged
point sources at z=1.0. Writes per-source JSONs and a combined
point_datasets.csv carrying the new `redshift` column (PyAutoLens #465), so
the CSV is the canonical hand-editable cluster input. Removes the
`cluster/simulator` entry from no_run.yaml so the script runs in test mode
and the release build.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Apr 20, 2026
@Jammy2211 Jammy2211 merged commit 52a04ab into main Apr 20, 2026
1 check passed
@Jammy2211 Jammy2211 deleted the feature/cluster-simulator branch April 20, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant