-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cta-observatory:main' into irf-tool
- Loading branch information
Showing
208 changed files
with
7,029 additions
and
8,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.9" | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --files $(git diff origin/main --name-only) | ||
|
@@ -33,10 +33,6 @@ jobs: | |
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python-version: "3.8" | ||
install-method: mamba | ||
|
||
- os: ubuntu-latest | ||
python-version: "3.9" | ||
install-method: mamba | ||
|
@@ -47,15 +43,19 @@ jobs: | |
extra-args: ["codecov"] | ||
|
||
- os: ubuntu-latest | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
install-method: mamba | ||
|
||
- os: ubuntu-latest | ||
python-version: "3.11" | ||
install-method: pip | ||
|
||
- os: macos-latest | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
install-method: mamba | ||
|
||
- os: macos-latest | ||
python-version: "3.8" | ||
python-version: "3.9" | ||
install-method: pip | ||
|
||
defaults: | ||
|
@@ -84,7 +84,10 @@ jobs: | |
- name: mamba setup | ||
if: matrix.install-method == 'mamba' | ||
uses: mamba-org/provision-with-micromamba@v14 | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: environment.yml | ||
cache-downloads: true | ||
|
||
- name: Python setup | ||
if: matrix.install-method == 'pip' | ||
|
@@ -143,7 +146,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
python-version: "3.9" | ||
|
||
- name: Install doc dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,6 @@ Orel Gueta <[email protected]> orelgueta <[email protected] | |
Rune Michael Dominik <[email protected]> | ||
|
||
Henning Ptaszyk <[email protected]> | ||
|
||
|
||
Tomas Bylund <[email protected]> Tomas Bylund <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
""" | ||
Calibration | ||
Module for calibration code | ||
""" | ||
from .camera import CameraCalibrator, GainSelector | ||
|
||
__all__ = ["CameraCalibrator", "GainSelector"] | ||
__all__ = [ | ||
"CameraCalibrator", | ||
"GainSelector", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Module for python version compatibility | ||
""" | ||
import sys | ||
|
||
__all__ = [ | ||
"StrEnum", | ||
] | ||
|
||
|
||
if sys.version_info >= (3, 11): | ||
from enum import StrEnum | ||
else: | ||
from enum import Enum | ||
|
||
class StrEnum(str, Enum): | ||
"""Compatibility backfill of StrEnum for python < 3.11""" |
Oops, something went wrong.