Metadata-Version: 2.4
Name: ctao-simpipe
Version: 0.3.0
Summary: CTAO DPPS Simulation Production Pipeline
Author-email: simpipe developers <simtools-developer@desy.de>
License: BSD 3-Clause License
        
        Copyright (c) 2025, CTAO, simpipe developers
        All rights reserved.
        
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright notice, this
           list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright notice,
           this list of conditions and the following disclaimer in the documentation
           and/or other materials provided with the distribution.
        
        3. Neither the name of the copyright holder nor the names of its
           contributors may be used to endorse or promote products derived from
           this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        
Project-URL: documentation, https://gitlab.cta-observatory.org/cta-computing/dpps/simpipe/simpipe
Project-URL: repository, https://gitlab.cta-observatory.org/cta-computing/dpps/simpipe/simpipe
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: gammasimtools
Provides-Extra: all
Requires-Dist: ctao-simpipe[dev,doc,test]; extra == "all"
Provides-Extra: dev
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: pylint; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: towncrier; extra == "dev"
Provides-Extra: doc
Requires-Dist: ctao-sphinx-theme~=0.1.2; extra == "doc"
Requires-Dist: myst-parser; extra == "doc"
Requires-Dist: numpydoc; extra == "doc"
Requires-Dist: sphinx; extra == "doc"
Requires-Dist: sphinx-changelog; extra == "doc"
Requires-Dist: towncrier; extra == "doc"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: pytest-mock; extra == "test"
Requires-Dist: pytest-requirements; extra == "test"
Requires-Dist: pytest-xdist; extra == "test"
Dynamic: license-file

# DPPS SimPipe: Integration and Release

The **CTAO DPPS Simulation Production Pipeline (SimPipe)** provides the software, workflows, and data models for generating accurate Monte Carlo simulations of the CTAO observatory.

## Installation

The following installation procedures are implemented in the gitlab CI/CD pipeline:

- simtools is installed using pip
- CORSIKA is installed using a tar-file (currently downloaded from a cloud storage)
- sim_telarray is installed using a tar-file (currently downloaded from a cloud storage); planned to be installed from gitlab
- simulation model databases - no installed required; configuration of secrets for access

Download of corsika / sim_telarray is facilitated by a private upload to the DESY Sync&Share.
Ask the maintainers to provide the token to you and define it in a `.env` file in this repository:

```console
SOFTWARE_DOWNLOAD_SECRET=<the token received from the maintainers>
```

Then run `make build-dev-docker` to build the simpipe container locally.

## Preparing a new release

Open a new branch from `main` for a release candidate.
Use the `update_simpipe.py` script to update the versions of the software components and the docker base image. This requires to define:

- simtools version (see [simtools releases](https://github.com/gammasim/simtools/releases))
- simulation-models version (see [simulation-models releases](https://gitlab.cta-observatory.org/cta-science/simulations/simulation-model/simulation-models/-/releases))
- dpps-aiv-toolkit version (see [dpps-aiv-toolkit releases](https://gitlab.cta-observatory.org/cta-computing/dpps/aiv/dpps-aiv-toolkit/-/releases))

 Example:

```console
python ./update_simpipe.py --simtools v0.21.0 --simulation-models v0.10.0 --dpps-aiv-submodule v3.0.0
```

After this open a merge request, get it reviewed and merge it into `main`.
Create a new release through the Gitlab interface.

## Developer Notes

- a local simulation models database is used for testing. Uploading details are defined in [chart/templates/bootstrapSimulationModel.yaml](chart/templates/bootstrapSimulationModel.yaml)
