Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
44ba870
Create release_conda.yml
rcervinoucm Oct 8, 2025
7cbdbac
Update release_conda.yml
rcervinoucm Oct 8, 2025
24bcdea
Create meta.yaml
rcervinoucm Oct 8, 2025
097b6a7
Update release_conda.yml
rcervinoucm Oct 8, 2025
cb201ee
Update release_conda.yml
rcervinoucm Oct 8, 2025
b3ebcd6
Update release_conda.yml
rcervinoucm Oct 8, 2025
8d5d629
Update release_conda.yml
rcervinoucm Oct 8, 2025
44478a3
Update release_conda.yml
rcervinoucm Oct 8, 2025
a3c6b04
Update release_conda.yml
rcervinoucm Oct 8, 2025
7d6e42c
Update release_conda.yml
rcervinoucm Oct 8, 2025
130a2f9
Update release_conda.yml
rcervinoucm Oct 8, 2025
2e65a85
Update release_conda.yml
rcervinoucm Oct 8, 2025
fdcafc2
Update release_conda.yml
rcervinoucm Oct 8, 2025
e2646a6
Update release_conda.yml
rcervinoucm Oct 8, 2025
b5bfba4
Update release_conda.yml
rcervinoucm Oct 8, 2025
6ec9cd8
Update release_conda.yml
rcervinoucm Oct 8, 2025
03c72a1
Update release_conda.yml
rcervinoucm Oct 8, 2025
5615b2a
Update release_conda.yml
rcervinoucm Oct 8, 2025
8ec845d
Update meta.yaml
rcervinoucm Oct 8, 2025
5db9fe4
Update meta.yaml
rcervinoucm Oct 8, 2025
6b1d97e
Update meta.yaml
rcervinoucm Oct 8, 2025
f49d811
Update meta.yaml
rcervinoucm Oct 8, 2025
0c98b6f
Update release_conda.yml
rcervinoucm Oct 8, 2025
e2eb7ae
Update release_conda.yml
rcervinoucm Oct 8, 2025
6675544
Update release_conda.yml
rcervinoucm Oct 8, 2025
0d72fee
Update release_conda.yml
rcervinoucm Oct 8, 2025
39e1c3c
Update release_conda.yml
rcervinoucm Oct 8, 2025
83e94ca
Update environment.yml
rcervinoucm Oct 8, 2025
75df929
Update meta.yaml
rcervinoucm Oct 8, 2025
8618843
Update meta.yaml
rcervinoucm Oct 8, 2025
c4342eb
Update release_conda.yml
rcervinoucm Oct 8, 2025
ada8e7a
Update release_conda.yml
rcervinoucm Oct 8, 2025
35307cc
Update release_conda.yml
rcervinoucm Oct 8, 2025
f1a7f65
Update release_conda.yml
rcervinoucm Oct 8, 2025
1cd9105
Update release_conda.yml
rcervinoucm Oct 8, 2025
1e5b089
Update release_conda.yml
rcervinoucm Oct 8, 2025
dd45673
Update release_conda.yml
rcervinoucm Oct 8, 2025
220b065
Update release_conda.yml
rcervinoucm Oct 8, 2025
bd0638a
Update release_conda.yml
rcervinoucm Oct 8, 2025
e39fd8e
Update release_conda.yml
rcervinoucm Oct 9, 2025
bc430f1
Update release_conda.yml
rcervinoucm Oct 9, 2025
392bbb3
Update release_conda.yml
rcervinoucm Oct 9, 2025
822bc12
Update release_conda.yml
rcervinoucm Oct 9, 2025
e715761
Update release_conda.yml
rcervinoucm Oct 9, 2025
04c6e1f
Update release_conda.yml
rcervinoucm Oct 9, 2025
ec00548
Update release_conda.yml
rcervinoucm Oct 9, 2025
dbbb0d1
Update release_conda.yml
rcervinoucm Oct 9, 2025
98fe6d6
Update release_conda.yml
rcervinoucm Oct 9, 2025
5f166d8
Update release_conda.yml
rcervinoucm Oct 9, 2025
7d4c9ab
Update release_conda.yml
rcervinoucm Oct 9, 2025
55deb7c
Update release_conda.yml
rcervinoucm Oct 9, 2025
4935e70
Update release_conda.yml
rcervinoucm Oct 9, 2025
339a0cf
Update release_conda.yml
rcervinoucm Oct 9, 2025
eaa3fa5
Update release_conda.yml
rcervinoucm Oct 9, 2025
b8012d2
Update release_conda.yml
rcervinoucm Oct 9, 2025
b28b55b
Update release_conda.yml
rcervinoucm Oct 9, 2025
16ac30b
Update release_conda.yml
rcervinoucm Oct 9, 2025
85fceb4
Update release_conda.yml
rcervinoucm Oct 9, 2025
a288fbf
Update release_conda.yml
rcervinoucm Oct 9, 2025
0251702
Update meta.yaml
rcervinoucm Oct 9, 2025
2d7813e
Update release_conda.yml
rcervinoucm Oct 9, 2025
0244bde
Update meta.yaml
rcervinoucm Oct 9, 2025
8d19cb4
Update release_conda.yml
rcervinoucm Oct 9, 2025
71cb34c
Update release_conda.yml
rcervinoucm Oct 9, 2025
485fa19
Update release_conda.yml
rcervinoucm Oct 9, 2025
478b1f6
Update release_conda.yml
rcervinoucm Oct 9, 2025
70da932
Update meta.yaml
rcervinoucm Oct 9, 2025
0be6255
Update release_conda.yml
rcervinoucm Oct 9, 2025
e518210
Update release_conda.yml
rcervinoucm Oct 9, 2025
69a3e61
Update release_conda.yml
rcervinoucm Oct 9, 2025
b6e9e4d
Update release_conda.yml
rcervinoucm Oct 9, 2025
8ebdfa5
Update release_conda.yml
rcervinoucm Oct 9, 2025
1df4935
Update release_conda.yml
rcervinoucm Oct 9, 2025
5a736c9
Update release_conda.yml
rcervinoucm Oct 9, 2025
2ae9d69
Update release_conda.yml
rcervinoucm Oct 9, 2025
5f38b72
Update release_conda.yml
rcervinoucm Oct 9, 2025
22cc8d3
Update meta.yaml
rcervinoucm Oct 9, 2025
0ab6b85
Update release_conda.yml
rcervinoucm Oct 9, 2025
e3fdae3
Update meta.yaml maintainers
rcervinoucm Oct 9, 2025
e5888b4
Update README.rst
rcervinoucm Oct 9, 2025
0bd5556
Update README.rst
rcervinoucm Oct 9, 2025
3d4fa63
Update README.rst
rcervinoucm Oct 10, 2025
3572259
Update README.rst
rcervinoucm Oct 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% set name = "dl1_data_handler" %}
{% set version = os.environ.get('PACKAGE_VERSION', '0.0.0+dev') %}

package:
name: {{ name }}
version: {{ version }}

source:

path: ../../

build:
noarch: python
number: 0
script: "{{ PYTHON }} -m pip install . --no-deps -vv"

requirements:
host:
- python >=3.10
- pip
- setuptools >=65
- setuptools_scm >=6.2
run:
- python >=3.10
- astropy
- numpy
- pandas
- pyyaml
- scipy
- traitlets
- pydot
- setuptools
- ctapipe>=0.23,<0.26


test:
imports:
- dl1_data_handler

about:
home: https://github.com/cta-observatory/dl1-data-handler
license: BSD-3-Clause
summary: "Utilities for reading and processing CTA R1/DL0/DL1 data in a standardized format."
description: |
A package of utilities for reading and applying image processing to Cherenkov Telescope Array (CTA)
R1/DL0/DL1 data in a standardized format. Created primarily for testing machine learning image
analysis techniques on IACT data.
dev_url: https://github.com/cta-observatory/dl1-data-handler

extra:
recipe-maintainers:
- Daniel Nieto
- Tjark Miener
- Alexander Cervino
59 changes: 59 additions & 0 deletions .github/workflows/release_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Release Conda

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-22.04

steps:
- name: Checkout repository and fetch tags
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Miniconda and Conda Tools
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.10'
channels: conda-forge
auto-update-conda: true
mamba-version: "*"
activate-environment: false

- name: Install anaconda-client and conda-build
shell: bash
run: |
mamba install anaconda-client conda-build -y

- name: Conda Build and Upload Package
shell: bash
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
CONDA_RECIPE_DIR=".github/conda"
ANACONDA_CHANNEL="ctlearn-project"

FULL_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0+dev")
VERSION="${FULL_TAG#v}"
VERSION="${VERSION#V}"

echo "Building package version: $VERSION"
export PACKAGE_VERSION=$VERSION

conda run conda build $CONDA_RECIPE_DIR

PACKAGE_PATH=$(conda run conda build $CONDA_RECIPE_DIR --output)

if [[ "$VERSION" != "0.0.0+dev" ]]; then
echo "Uploading $PACKAGE_PATH to $ANACONDA_CHANNEL channel..."
conda run anaconda upload \
"$PACKAGE_PATH" \
--force \
--user $ANACONDA_CHANNEL
else
echo "Skipping upload: Version is $VERSION (development)."
fi
22 changes: 11 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,26 @@ Previously named image-extractor (v0.1.0 - v0.6.0). Currently under development,
Installation
------------

The following installation method (for Linux) is recommended:
The lastest version fo this package can be installed as a conda or pip package:

Installing as a conda package
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code-block:: bash

To install dl1-data-handler as a conda package, first install Anaconda by following the instructions here: https://www.anaconda.com/distribution/.
conda install ctlearn-project::dl1_data_handler

The following command will set up a conda virtual environment, add the
necessary package channels, and install dl1-data-handler specified version and its dependencies:
or

.. code-block:: bash

DL1DH_VER=0.14.5
wget https://raw.githubusercontent.com/cta-observatory/dl1-data-handler/v$DL1DH_VER/environment.yml
conda env create -n [ENVIRONMENT_NAME] -f environment.yml
conda activate [ENVIRONMENT_NAME]
conda install -c ctlearn-project dl1_data_handler=$DL1DH_VER
pip install dl1-data-handler

Installing as a conda package

This should automatically install all dependencies (NOTE: this may take some time, as by default MKL is included as a dependency of NumPy and it is very large).

Developers
------------

We welcome contributions to this package! If you're interested in contributing, please make sure to follow the `ctapipe developer guidelines <https://ctapipe.readthedocs.io/en/latest/developer-guide/getting-started.html>`_.

Links
-----
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
- numpy
- scipy
- pip
- ctapipe>=0.22,<0.26
- ctapipe >=0.23,<0.26
- traitlets
- pyyaml
- pandas
Expand Down