Skip to content

ObsCU v2.1.0 — Strong Gravitational Lensing

Choose a tag to compare

@HainaHuang729 HainaHuang729 released this 02 Dec 01:32
· 3 commits to main since this release

What's New in ObsCU v2.1.0

Strong Gravitational Lensing (obscu.strong_lensing)

  • Cosmological Lensing Geometry: StrongLensGeometry, compute_strong_lens_geometry ($D_d, D_s, D_{ds}$, $\Sigma_{\rm crit}$, time-delay distance $D_{\Delta t}$), einstein_radius_sis_arcsec, einstein_radius_point_mass_arcsec.
  • Analytic & Composite Mass Profiles (NumPy CPU + CuPy GPU): PointMassLens, SIELens (softened/singular isothermal ellipsoid with rotation & circular limit), ExternalShearLens, SphericalNFWLens (+ from_halo_mass), PseudoJaffeLens (+ from_subhalo_mass), and CompositeLens.
  • CDM / WDM Subhalo Substructure: populate_subhalo_lenses integrating obscu.nonstandard.wdm_hmf_suppression.
  • Critical Curves, Caustics & Multi-Image Solver: find_critical_curves_and_caustics, solve_lens_equation (2D grid bracketing + damped exact-Jacobian Newton-Raphson root polishing, parity classification, Fermat potentials & relative time delays).
  • Oversampled Ray-Shooting & Optical / SBI Pipeline: SersicSource, GaussianClumpSource, render_lensed_image (2D & RGB with __dlpack__), simulate_strong_lens_observation, and generate_strong_lens_training_batch bridged to obscu.imaging_sim and obscu.sbi.
  • Validation & Benchmarks: Added Validation Gate 11 (strong_lensing_analytic_parity) in obscu.validation and Suite 8 (strong_lensing_rayshoot) in scripts/benchmark_gpu_production.py.

Verification Summary

  • Local CPU: 11/11 validation gates PASS; test_v21_strong_lensing.py PASS.
  • Google Colab Tesla T4 GPU (CuPy 14.0.1): 87/87 executed tests PASS (0 failures, 5 optional dependency skips), CPU vs GPU float64 ray-shooting parity max_abs_diff <= 1.51e-14, and benchmark_gpu_production.py --preset smoke --backend cupy 8/8 suites PASS.