Metadata-Version: 2.4
Name: sst1mpipe
Version: 0.32.0a1
Summary: Analysis chain for the SST-1M prototype
Author: SST-1M collaboration
License: BSD 3-Clause License
        
        Copyright (c) 2024, SST-1M collaboration 
        
        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: Homepage, https://sst-1m.space/
Project-URL: Repository, https://github.com/SST-1M-collaboration/sst1mpipe
Project-URL: Documentation, https://sst1mpipe.readthedocs.io/
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ctapipe[eventio]~=0.32.0
Requires-Dist: astropy<7,>=6.1
Requires-Dist: numpy<2
Requires-Dist: astroquery~=0.4.6
Requires-Dist: click
Requires-Dist: ctaplot~=0.6.2
Requires-Dist: gammapy~=1.3.0
Requires-Dist: h5py
Requires-Dist: iminuit
Requires-Dist: joblib
Requires-Dist: matplotlib
Requires-Dist: pandas
Requires-Dist: pillow
Requires-Dist: protozfits
Requires-Dist: pyirf~=0.8.0
Requires-Dist: pyzmq
Requires-Dist: scikit-learn
Requires-Dist: scipy
Requires-Dist: sst1m-cts>=1.0
Requires-Dist: tables
Requires-Dist: tqdm
Requires-Dist: traitlets
Requires-Dist: wrapt
Provides-Extra: tests
Requires-Dist: coverage; extra == "tests"
Requires-Dist: nbmake; extra == "tests"
Requires-Dist: pytest; extra == "tests"
Provides-Extra: docs
Requires-Dist: nbsphinx; extra == "docs"
Requires-Dist: numpydoc; extra == "docs"
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-argparse; extra == "docs"
Requires-Dist: sphinx-automodapi; extra == "docs"
Requires-Dist: sphinx-design; extra == "docs"
Requires-Dist: sphinx-rtd-theme; extra == "docs"
Requires-Dist: sphinx-togglebutton; extra == "docs"
Requires-Dist: sphinxcontrib-mermaid; extra == "docs"
Provides-Extra: dev
Requires-Dist: sst1mpipe[docs,tests]; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

[![documentation](https://github.com/SST-1M-collaboration/sst1mpipe/actions/workflows/documentation.yml/badge.svg)](https://github.com/SST-1M-collaboration/sst1mpipe/actions/workflows/documentation.yml) [![ci](https://github.com/SST-1M-collaboration/sst1mpipe/actions/workflows/ci.yml/badge.svg)](https://github.com/SST-1M-collaboration/sst1mpipe/actions/workflows/ci.yml)
# SST-1M pipeline 

The [sst1mpipe](https://github.com/SST-1M-collaboration/sst1mpipe) repository is used for processing and analyzing data from the <b>SST-1M</b> prototype. Currently, two SST-1M telescopes are installed in Ondrejov, Czech Republic, operation in both mono and stereo observation modes. The <b>SST-1M</b> pipeline is based on [ctapipe](https://github.com/cta-observatory/ctapipe) and draws inspiration from [cta-lstchain](https://github.com/cta-observatory/cta-lstchain). Some funcionalities for stereoscopic reconstruction are inspired by [magic-cta-pipe](https://github.com/cta-observatory/magic-cta-pipe).

sst1mpipe provides tools for low-level data analysis up to DL3, which can be further analyzed using standard tools such as [gammapy](https://github.com/gammapy).

- **Source code:** https://github.com/SST-1M-collaboration/sst1mpipe
- **Documentation:** https://sst1mpipe.readthedocs.io/


**NOTE ON OLD RELEASES**

v0.3.5 of *sst1mpipe* was the last one before the repository was made public. Old releases are available only to the members of SST-1M Consortium and can be found in a privare repository [sst1mpipe-old](https://github.com/SST-1M-collaboration/sst1mpipe-old).

# Installation

## From PyPI

Since 0.32, the versions of *sst1mpipe* follow the versions of [ctapipe](https://github.com/cta-observatory/ctapipe)
(*sst1mpipe* 0.32.x uses ctapipe 0.32). The 0.32.0aN versions are alpha releases: the DL1 to DL3 steps and the
stereo matching are not migrated to the new ctapipe tools yet.

```
pip install --pre sst1mpipe
```

## With conda

The advanced package and environment management system, [Anaconda](https://www.anaconda.com/distribution/#download-section), [Miniconda](https://docs.conda.io/en/latest/miniconda.html) or [Mamba](https://anaconda.org/conda-forge/mamba), need to be installed first.

The Mamba is recommended due to some (quite often occurred) stuck at solving environment on Anaconda. Up to now Mamba works well.

Set up environment based on Mamba
(also described in https://github.com/conda-forge/miniforge#mambaforge)

Download the latest miniforge installation script
```
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
```

Install miniforge by following the instructions
```
bash Miniforge3-$(uname)-$(uname -m).sh
````

- download stable version of <b>sst1mpipe</b> (latest version = 0.9.0)
- create and activate <b>mamba</b> environment
- install <b>sst1mpipe</b>
```
SST1MPIPE_VER=0.9.0

wget https://github.com/SST-1M-collaboration/sst1mpipe/archive/refs/tags/v$SST1MPIPE_VER.tar.gz
tar -xvf v$SST1MPIPE_VER.tar.gz
cd sst1mpipe-$SST1MPIPE_VER
mamba env create -n sst1m-$SST1MPIPE_VER -f environment.yml
mamba activate sst1m-$SST1MPIPE_VER
pip install .
```

# Making a release

See [Making a release](CONTRIBUTING.md#making-a-release) in CONTRIBUTING.md.
