Rubin's repeated observations of cluster-scale strong lenses let us study their image structure and time delays. RubinsCSSL collects our simulations and analysis for these systems, with optional PyCS3 tools for fitting time delays.
Use Python 3.13 or newer. Install the package with the interpreter that will run the analysis and tests.
python -m pip install -e .The PyCS3 time-delay fitting modules use the time-delays extra.
python -m pip install -e '.[time-delays]'Set RUBINSCSSL_PATH to the checkout directory when the package is used from a different location. If it is unset, the package uses its checkout root. data/ and visuals/ are ignored by Git for local inputs and generated figures.
Install the test, plotting, and time-delay dependencies before running the full suite.
python -m pip install -e '.[dev,plots,time-delays]'
python -m pytestThe compiled Rubin Science Pipelines are a separate environment prerequisite. Their integration check is skipped when those modules are unavailable. SLSim is a required package dependency, so a missing SLSim installation remains an error.
Install .[plots] for the corner, static band-performance, and interactive
Bokeh plots.
python -m pip install -e '.[plots]'plot_band_performance() and plot_band_performance_bokeh() render the same
assessability, conditional-accuracy, and end-to-end fractions from the summary
table. The HTML version adds hover values and a legend that can hide series.
Both plotting functions and make_population_corner_suite() accept
typeplotback='dark' for black backgrounds with white axes. The default is
white with black axes, or the theme selected by an enclosing TDpy
plot_style() block. Returned figures and saved files share the selected theme
without changing later plots.
PyCS3 fitting and feature summaries reject masked time, magnitude, or uncertainty values before converting arrays. Unmasked arrays remain supported. Earlier runs that supplied masked values should be reassessed because the hidden values could have been treated as observations.
Both PyCS3 mock-fitting paths count a delay error as catastrophic when its
absolute value exceeds the larger of 5 days and 20% of the true delay by
default. The fraction uses finite measured and true delay pairs; failed or
missing mocks are reported separately. Setting either threshold to None
leaves the fraction undefined. Older runs with a nonzero day threshold reported
NaN and must be rerun to obtain this fraction.
The synthetic feature-pipeline notebook
builds model and noisy observed light curves for six toy lens systems in the
g, r, and i bands. It supplies illustrative fit outcomes, then summarizes
feature availability, assessability, delay accuracy, and error by band. The
static and Bokeh plots use the optional plots extra and need no PyCS3
installation. These fixtures exercise the pipeline and provide no estimate of
Rubin time-delay recovery.
The synthetic PyCS3 delay notebook
fits a seeded two-image light curve and displays the observations before and
after spline alignment. It requires the time-delays and plots extras.
The notebook illustrates spline alignment on a seeded two-image light curve.
Estimating Rubin time-delay recovery requires survey-specific cadence, noise,
and lens-population simulations.
The synthetic GausSN degradation notebook fits a two-image toy light curve along two grouped-removal paths. It displays the retained-observation counts, delay summaries, and effective sample sizes. Its deliberately capped runs summarize behavior under these settings. Longer chains and Rubin-specific cadence, noise, and lens-population simulations are needed to assess convergence and survey recovery.
The GausSN degradation helper rejects tables with masked time, flux, uncertainty,
band, or image values before attempting a fit.
Install .[gaussn-tools] for its Dynesty-based posterior summaries. The helper
accepts a fit callback; running an actual GausSN model also requires installing
GausSN and its JAX dependency separately.
Set DegradationConfig(delay_index=...) to the delay column of the fitted model.
It must be a nonnegative integer. The upper bound is checked against the
posterior sample width after fitting.
The upstream GausSN SLSN example uses column 2 for its four-parameter fit and
column 6 for its eight-parameter SALT fit.
fit_success means the callback and summary completed; constrained applies
only the configured interval-width and prior-edge criteria. Neither flag
establishes sampler convergence. Inspect the sampler's convergence information
and effective sample size before interpreting a fit.