lsst-ts / ts_phosim

High-Level Module to Perturb the PhoSim
GNU General Public License v3.0
0 stars 1 forks source link

docs

Discontinued development deprecation note

As of v8.0.0 of ts_wep stopped being compatible with ts_phosim due to the introduction of ts_imsim-specific rotations. As of October 2023, all functionality of ts_phosim to simulate the AOS loop is ported to ts_imsim. Please see ts_imsim for all installation instructions.

PhoSim Use

This module is a high-level module to use PhoSim.

See the docs: https://ts-phosim.lsst.io/

Platform

Needed Package

Use of Module

  1. Setup the WEP and OFC environments first, and then setup and build phosim_utils:
cd $phosim_utils_directory
setup -k -r .
scons
  1. Setup the PhoSim environment by eups:
cd $ts_phosim_directory
setup -k -r .
scons
  1. Set the path variables:
export PHOSIMPATH=$path_to_phosim
export AOCLCOUTPUTPATH=$path_to_output

Code Format

This code is automatically formatted by black using a git pre-commit hook. To enable this:

  1. Install the black Python package.
  2. Run git config core.hooksPath .githooks once in this repository.

Example Script

Command Line Task

Example Sky Files

There are two sky files in tests/testData/sky/ directory that can be used in the test of command line task. One is for ComCam and one is for LSST full array mode (FAM): skyComCam.txt and skyLsstFam.txt.

Build the Document

To build project documentation, run package-docs build to build the documentation. The packages of documenteer, plantuml, and sphinxcontrib-plantuml are needed. The path of plantuml.jar in doc/conf.py needs to be updated to the correct path. To clean the built documents, use package-docs clean. See Building single-package documentation locally for further details.

Reference of PhoSim with active optics (AOS)