Installation

In most cases, this package is installed as a dependency of the main data reduction pipeline (liger_iris_pipeline) and simulator (liger_iris_sim), and users do not need to install this package separately.

Below are instructions for manually installing this package.

Python Environment

It is highly recommended users create a new Python environment with either venv, Anaconda, or uv. The pipeline supports Python versions 3.12 or newer.

To create a uv environment specifically for the latest stable release of liger_iris_drp_resources (in this example, called liger_iris):

uv venv liger_iris --python 3.13

This will create a fresh Python 3.13 environment.

Once you have created your uv environment, activate it:

source liger_iris/bin/activate

Install from GitHub

  1. Clone the repository:

git clone https://github.com/astrobc1/liger_iris_drp_resources.git
  1. Install live version with pip:

cd liger_iris_drp_resources
uv pip install -e .

The -e (editable) flag uses the specified package directory as the “live” source code, and does not copy it to the usual site-packages directory.

Configure Resources Directory

The local resources directory can be specified with the environment variable

LIGER_IRIS_DRP_RESOURCE_DIR

The default location is the result of:

..code-block:: python

from astropy.utils.data import _get_download_cache_loc import os resource_dir = os.path.join(_get_download_cache_loc(), ‘LIGER_IRIS_DRP_RESOURCES’)

This will usually be ~/.astropy/cache/download/url/LIGER_IRIS_DRP_RESOURCES/.