Prerequisites

The ulens_lsst package requires the LSST stack (e.g., lsst-scipipe-10.0.0) for modules like lsst_data and lsst_tools. Follow the official LSST installation guide: LSST Stack Installation. If you are working on https://data.lsst.cloud/:

source /opt/lsst/software/stack/loadLSST.bash
setup lsst_distrib

External datasets (e.g., chunks_TRILEGAL_Genulens) are required for certain configurations. Download and place them in ulens_lsst/data/chunks_TRILEGAL_Genulens/. See Data Setup and Outputs for setup instructions.

Installation

Install ulens_lsst via pip:

pip install ulens_lsst

For development, clone the repository and install locally:

git clone https://github.com/nowokaren/ulens_lsst.git
cd ulens_lsst
pip install -e .

Configuration

  1. Copy the example configuration file:

    cp ulens_lsst/config_file.yaml config.yaml
    
  2. Update config.yaml with paths to your datasets (e.g., TRILEGAL_Genulens_path).

Optional Dependencies

For sim_type=”rubin_sim”, install rubin_sim and Opsim via the LSST stack:

conda install -c conda-forge rubin-sim

See the rubin_sim documentation <https://rubin-sim.lsst.io/> for details on Opsim versions (e.g., “baseline”).