aliprocessing 2025.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aliprocessing-2025.1.0/.github/dependabot.yml +11 -0
- aliprocessing-2025.1.0/.github/workflows/release.yml +139 -0
- aliprocessing-2025.1.0/.github/workflows/test.yml +79 -0
- aliprocessing-2025.1.0/.gitignore +170 -0
- aliprocessing-2025.1.0/.pre-commit-config.yaml +55 -0
- aliprocessing-2025.1.0/.readthedocs.yaml +14 -0
- aliprocessing-2025.1.0/Dockerfile +24 -0
- aliprocessing-2025.1.0/LICENSE +21 -0
- aliprocessing-2025.1.0/PKG-INFO +42 -0
- aliprocessing-2025.1.0/README.md +22 -0
- aliprocessing-2025.1.0/__init__.py +0 -0
- aliprocessing-2025.1.0/docs/source/conf.py +103 -0
- aliprocessing-2025.1.0/docs/source/index.md +5 -0
- aliprocessing-2025.1.0/pyproject.toml +126 -0
- aliprocessing-2025.1.0/setup.cfg +4 -0
- aliprocessing-2025.1.0/src/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/_version.py +16 -0
- aliprocessing-2025.1.0/src/aliprocessing/core/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/core/instrument/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/data/retrieval/aerosol_apriori.txt +52 -0
- aliprocessing-2025.1.0/src/aliprocessing/l1b/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/l1b/data.py +1 -0
- aliprocessing-2025.1.0/src/aliprocessing/l2/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/aotf.py +280 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/data/Aluminum_Coating_Comparison_Data.xlsx +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/data/aluminum_coating_thorlab.txt +1979 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/data/gold_coating_mirror_aoi12.txt +1973 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/data/gold_coating_mirror_aoi45.txt +4420 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/lcr.py +53 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/lenses.py +136 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/lineshape.py +168 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/polarizer.py +75 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensor.py +724 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensor_2channel.py +322 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensors/__init__.py +7 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensors/base_sensor.py +200 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensors/cardinal_1280.py +49 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensors/cardinal_640.py +62 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensors/raptor_owl_640_n.py +80 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/sensors/teledyne_ccd97.py +29 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/simulator.py +568 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/instrument/spectralimager.py +455 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/aerosol.py +249 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/cloud.py +418 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/extinction.py +1559 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/measvec/__init__.py +178 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/measvec/transformer.py +571 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/particlesize.py +887 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/retrieval/statevector.py +468 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/aerosol.py +20 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/analysis.py +299 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/atmospheres.py +544 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/config.py +21 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/er2.py +82 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/geometry.py +37 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/grl_paper.mplstyle +64 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/rt_options.py +87 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/sampling.py +428 -0
- aliprocessing-2025.1.0/src/aliprocessing/legacy/util/sensors.py +150 -0
- aliprocessing-2025.1.0/src/aliprocessing/simulation/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/simulation/atmosphere/__init__.py +0 -0
- aliprocessing-2025.1.0/src/aliprocessing/simulation/atmosphere/acefts.py +134 -0
- aliprocessing-2025.1.0/src/aliprocessing/simulation/atmosphere/curtain.py +551 -0
- aliprocessing-2025.1.0/src/aliprocessing/simulation/atmosphere/gem.py +340 -0
- aliprocessing-2025.1.0/src/aliprocessing/simulation/atmosphere/opc.py +343 -0
- aliprocessing-2025.1.0/src/aliprocessing.egg-info/PKG-INFO +42 -0
- aliprocessing-2025.1.0/src/aliprocessing.egg-info/SOURCES.txt +76 -0
- aliprocessing-2025.1.0/src/aliprocessing.egg-info/dependency_links.txt +1 -0
- aliprocessing-2025.1.0/src/aliprocessing.egg-info/requires.txt +8 -0
- aliprocessing-2025.1.0/src/aliprocessing.egg-info/top_level.txt +2 -0
- aliprocessing-2025.1.0/tests/l2/basic_extinction_retrieval.py +98 -0
- aliprocessing-2025.1.0/tests/l2/basic_particlesize_retrieval.py +110 -0
- aliprocessing-2025.1.0/tests/test_dummy.py +5 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
name: 'release'
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types:
|
|
6
|
+
- published
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build-upload-conda:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
if: github.repository_owner == 'usask-arg'
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout repository
|
|
20
|
+
uses: actions/checkout@v3
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
submodules: true
|
|
24
|
+
|
|
25
|
+
- name: Setup Conda build environment
|
|
26
|
+
uses: mamba-org/setup-micromamba@v1
|
|
27
|
+
with:
|
|
28
|
+
environment-file: ci/conda-envs/mamba-build.yml
|
|
29
|
+
|
|
30
|
+
- name: Build Conda package
|
|
31
|
+
shell: bash -el {0}
|
|
32
|
+
run: |
|
|
33
|
+
conda config --set anaconda_upload yes
|
|
34
|
+
conda mambabuild conda.recipe --output-folder pkgs/ --user usask-arg --token ${{ secrets.ANACONDA_TOKEN }} --no-test
|
|
35
|
+
|
|
36
|
+
- name: Save conda package
|
|
37
|
+
uses: actions/upload-artifact@v3
|
|
38
|
+
with:
|
|
39
|
+
name: conda
|
|
40
|
+
path: pkgs
|
|
41
|
+
|
|
42
|
+
build_wheel:
|
|
43
|
+
name: Build Wheel
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
if: github.repository_owner == 'usask-arg'
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@v4
|
|
48
|
+
with:
|
|
49
|
+
submodules: true
|
|
50
|
+
fetch-depth: 0
|
|
51
|
+
- uses: actions/setup-python@v4
|
|
52
|
+
name: Install Python
|
|
53
|
+
with:
|
|
54
|
+
python-version: "3.11"
|
|
55
|
+
|
|
56
|
+
- name: Install dependencies
|
|
57
|
+
run: |
|
|
58
|
+
python -m pip install --upgrade pip
|
|
59
|
+
python -m pip install build twine
|
|
60
|
+
|
|
61
|
+
- name: Build tarball and wheels
|
|
62
|
+
run: |
|
|
63
|
+
git clean -xdf
|
|
64
|
+
git restore -SW .
|
|
65
|
+
python -m build
|
|
66
|
+
|
|
67
|
+
- name: Check built artifacts
|
|
68
|
+
run: |
|
|
69
|
+
python -m twine check --strict dist/*
|
|
70
|
+
pwd
|
|
71
|
+
if [ -f dist/*-0.0.0.tar.gz ]; then
|
|
72
|
+
echo "❌ INVALID VERSION NUMBER"
|
|
73
|
+
exit 1
|
|
74
|
+
else
|
|
75
|
+
echo "✅ Looks good"
|
|
76
|
+
fi
|
|
77
|
+
- uses: actions/upload-artifact@v4
|
|
78
|
+
with:
|
|
79
|
+
name: releases
|
|
80
|
+
path: dist
|
|
81
|
+
|
|
82
|
+
upload_wheels:
|
|
83
|
+
runs-on: ubuntu-latest
|
|
84
|
+
needs: build_wheel
|
|
85
|
+
environment:
|
|
86
|
+
name: pypi
|
|
87
|
+
url: https://pypi.org/p/aliprocessing
|
|
88
|
+
permissions:
|
|
89
|
+
id-token: write
|
|
90
|
+
if: (github.event_name == 'release')
|
|
91
|
+
steps:
|
|
92
|
+
- uses: actions/setup-python@v4
|
|
93
|
+
with:
|
|
94
|
+
python-version: "3.x"
|
|
95
|
+
|
|
96
|
+
- uses: actions/download-artifact@v4
|
|
97
|
+
with:
|
|
98
|
+
name: releases
|
|
99
|
+
path: dist
|
|
100
|
+
|
|
101
|
+
- name: Publish package to PyPI
|
|
102
|
+
uses: pypa/gh-action-pypi-publish@v1.8.7
|
|
103
|
+
with:
|
|
104
|
+
verbose: true
|
|
105
|
+
|
|
106
|
+
build-and-push-image:
|
|
107
|
+
name: Build and push Docker image
|
|
108
|
+
env:
|
|
109
|
+
REGISTRY: ghcr.io
|
|
110
|
+
IMAGE_NAME: ${{ github.repository }}
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
permissions:
|
|
113
|
+
contents: read
|
|
114
|
+
packages: write
|
|
115
|
+
|
|
116
|
+
steps:
|
|
117
|
+
- name: Checkout repository
|
|
118
|
+
uses: actions/checkout@v3
|
|
119
|
+
|
|
120
|
+
- name: Log in to the Container registry
|
|
121
|
+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
|
122
|
+
with:
|
|
123
|
+
registry: ${{ env.REGISTRY }}
|
|
124
|
+
username: ${{ github.actor }}
|
|
125
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
126
|
+
|
|
127
|
+
- name: Extract metadata (tags, labels) for Docker
|
|
128
|
+
id: meta
|
|
129
|
+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
|
130
|
+
with:
|
|
131
|
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
132
|
+
|
|
133
|
+
- name: Build and push Docker image
|
|
134
|
+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
|
135
|
+
with:
|
|
136
|
+
context: .
|
|
137
|
+
push: true
|
|
138
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
139
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
name: 'test'
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
types: [ opened, reopened, synchronize, labeled ]
|
|
10
|
+
schedule:
|
|
11
|
+
- cron: '0 0 * * *'
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
test:
|
|
20
|
+
runs-on: ${{ matrix.os }}
|
|
21
|
+
|
|
22
|
+
strategy:
|
|
23
|
+
fail-fast: false
|
|
24
|
+
matrix:
|
|
25
|
+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
|
26
|
+
environment: [py311, py312]
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout repository
|
|
30
|
+
uses: actions/checkout@v3
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
submodules: true
|
|
34
|
+
|
|
35
|
+
- name: Setup environment
|
|
36
|
+
uses: prefix-dev/setup-pixi@v0.8.1
|
|
37
|
+
with:
|
|
38
|
+
environments: ${{ matrix.environment }}
|
|
39
|
+
|
|
40
|
+
- name: run pytests
|
|
41
|
+
shell: bash -el {0}
|
|
42
|
+
run: |
|
|
43
|
+
pixi r test
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
build-docker:
|
|
47
|
+
name: Build and push Docker image
|
|
48
|
+
env:
|
|
49
|
+
REGISTRY: ghcr.io
|
|
50
|
+
IMAGE_NAME: ${{ github.repository }}
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
permissions:
|
|
53
|
+
contents: read
|
|
54
|
+
packages: write
|
|
55
|
+
|
|
56
|
+
steps:
|
|
57
|
+
- name: Checkout repository
|
|
58
|
+
uses: actions/checkout@v3
|
|
59
|
+
|
|
60
|
+
- name: Log in to the Container registry
|
|
61
|
+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
|
62
|
+
with:
|
|
63
|
+
registry: ${{ env.REGISTRY }}
|
|
64
|
+
username: ${{ github.actor }}
|
|
65
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
66
|
+
|
|
67
|
+
- name: Extract metadata (tags, labels) for Docker
|
|
68
|
+
id: meta
|
|
69
|
+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
|
70
|
+
with:
|
|
71
|
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
72
|
+
|
|
73
|
+
- name: Build Docker image
|
|
74
|
+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
|
75
|
+
with:
|
|
76
|
+
context: .
|
|
77
|
+
push: false
|
|
78
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
79
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
#.idea/
|
|
161
|
+
|
|
162
|
+
# netcdf files
|
|
163
|
+
**/*/*.nc
|
|
164
|
+
|
|
165
|
+
.pixi
|
|
166
|
+
pixi.lock
|
|
167
|
+
|
|
168
|
+
.ruff_cache
|
|
169
|
+
|
|
170
|
+
src/aliprocessing/_version.py
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# To use:
|
|
2
|
+
#
|
|
3
|
+
# pre-commit run -a
|
|
4
|
+
#
|
|
5
|
+
# Or:
|
|
6
|
+
#
|
|
7
|
+
# pre-commit install # (runs every time you commit in git)
|
|
8
|
+
#
|
|
9
|
+
# To update this file:
|
|
10
|
+
#
|
|
11
|
+
# pre-commit autoupdate
|
|
12
|
+
#
|
|
13
|
+
# See https://github.com/pre-commit/pre-commit
|
|
14
|
+
|
|
15
|
+
ci:
|
|
16
|
+
autoupdate_commit_msg: "chore: update pre-commit hooks"
|
|
17
|
+
autofix_commit_msg: "style: pre-commit fixes"
|
|
18
|
+
|
|
19
|
+
repos:
|
|
20
|
+
# Standard hooks
|
|
21
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
22
|
+
rev: v5.0.0
|
|
23
|
+
hooks:
|
|
24
|
+
- id: check-added-large-files
|
|
25
|
+
- id: check-case-conflict
|
|
26
|
+
- id: check-merge-conflict
|
|
27
|
+
- id: check-symlinks
|
|
28
|
+
- id: check-yaml
|
|
29
|
+
exclude: ^conda\.recipe/meta\.yaml$
|
|
30
|
+
- id: debug-statements
|
|
31
|
+
- id: end-of-file-fixer
|
|
32
|
+
- id: mixed-line-ending
|
|
33
|
+
- id: requirements-txt-fixer
|
|
34
|
+
- id: trailing-whitespace
|
|
35
|
+
|
|
36
|
+
# Black, the code formatter, natively supports pre-commit
|
|
37
|
+
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
38
|
+
rev: 24.10.0
|
|
39
|
+
hooks:
|
|
40
|
+
- id: black
|
|
41
|
+
exclude: ^(docs)
|
|
42
|
+
|
|
43
|
+
# Check linting and style issues
|
|
44
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
45
|
+
rev: "v0.9.1"
|
|
46
|
+
hooks:
|
|
47
|
+
- id: ruff
|
|
48
|
+
args: ["--fix", "--show-fixes"]
|
|
49
|
+
|
|
50
|
+
# Changes tabs to spaces
|
|
51
|
+
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
52
|
+
rev: v1.5.5
|
|
53
|
+
hooks:
|
|
54
|
+
- id: remove-tabs
|
|
55
|
+
exclude: ^(docs)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
|
|
3
|
+
build:
|
|
4
|
+
os: ubuntu-22.04
|
|
5
|
+
tools:
|
|
6
|
+
python: "mambaforge-22.9"
|
|
7
|
+
|
|
8
|
+
commands:
|
|
9
|
+
- mamba install -c conda-forge -c nodefaults pixi
|
|
10
|
+
- pixi install -e default
|
|
11
|
+
- pixi run -e default readthedocs
|
|
12
|
+
|
|
13
|
+
sphinx:
|
|
14
|
+
configuration: docs/source/conf.py
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
FROM ghcr.io/prefix-dev/pixi:0.40.0-mantic AS build
|
|
2
|
+
|
|
3
|
+
RUN pixi global install git
|
|
4
|
+
|
|
5
|
+
# copy source code
|
|
6
|
+
WORKDIR /app
|
|
7
|
+
COPY . .
|
|
8
|
+
# install dependencies to `/app/.pixi/envs/default`
|
|
9
|
+
RUN pixi install -e default
|
|
10
|
+
# create the shell-hook bash script to activate the environment
|
|
11
|
+
RUN pixi shell-hook -e default -s bash > /shell-hook
|
|
12
|
+
RUN echo "#!/bin/bash" > /app/entrypoint.sh
|
|
13
|
+
RUN cat /shell-hook >> /app/entrypoint.sh
|
|
14
|
+
# extend the shell-hook script to run the command passed to the container
|
|
15
|
+
RUN echo 'exec "$@"' >> /app/entrypoint.sh
|
|
16
|
+
|
|
17
|
+
FROM ubuntu:24.04 AS production
|
|
18
|
+
WORKDIR /app
|
|
19
|
+
# only copy the production environment into prod container
|
|
20
|
+
# please note that the "prefix" (path) needs to stay the same as in the build container
|
|
21
|
+
COPY --from=build /app/.pixi/envs/default /app/.pixi/envs/default
|
|
22
|
+
COPY --from=build --chmod=0755 /app/entrypoint.sh /app/entrypoint.sh
|
|
23
|
+
# copy your project code into the container as well
|
|
24
|
+
COPY ./src /app/src
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 usask-arg
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: aliprocessing
|
|
3
|
+
Version: 2025.1.0
|
|
4
|
+
Summary: Aerosol Limb Imager processing code
|
|
5
|
+
Author-email: Landon Rieger <landon.rieger@usask.ca>, Daniel Zawada <daniel.zawada@usask.ca>
|
|
6
|
+
Classifier: Development Status :: 4 - Beta
|
|
7
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: numpy
|
|
15
|
+
Requires-Dist: skretrieval
|
|
16
|
+
Provides-Extra: test
|
|
17
|
+
Requires-Dist: pytest; extra == "test"
|
|
18
|
+
Provides-Extra: plotting
|
|
19
|
+
Requires-Dist: matplotlib; extra == "plotting"
|
|
20
|
+
|
|
21
|
+
# ali-processing
|
|
22
|
+
|
|
23
|
+
[](https://anaconda.org/usask-arg/ali-processing)
|
|
24
|
+
[](https://ali-processing.readthedocs.io/en/latest/?badge=latest)
|
|
25
|
+
[](https://results.pre-commit.ci/latest/github/usask-arg/showlib/main)
|
|
26
|
+
|
|
27
|
+
Research and development libraries developed at the University of Saskatchewan for the ALI instrument
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
The package can be installed through `conda` with
|
|
31
|
+
|
|
32
|
+
`conda install -c usask-arg ali-processing`
|
|
33
|
+
|
|
34
|
+
and the latest nightly available version is available through
|
|
35
|
+
|
|
36
|
+
`conda install -c usask-arg-nightly ali-processing`
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
Documentation can be found at https://ali-processing.readthedocs.io/
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
This project is licensed under the MIT license
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ali-processing
|
|
2
|
+
|
|
3
|
+
[](https://anaconda.org/usask-arg/ali-processing)
|
|
4
|
+
[](https://ali-processing.readthedocs.io/en/latest/?badge=latest)
|
|
5
|
+
[](https://results.pre-commit.ci/latest/github/usask-arg/showlib/main)
|
|
6
|
+
|
|
7
|
+
Research and development libraries developed at the University of Saskatchewan for the ALI instrument
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
The package can be installed through `conda` with
|
|
11
|
+
|
|
12
|
+
`conda install -c usask-arg ali-processing`
|
|
13
|
+
|
|
14
|
+
and the latest nightly available version is available through
|
|
15
|
+
|
|
16
|
+
`conda install -c usask-arg-nightly ali-processing`
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
Documentation can be found at https://ali-processing.readthedocs.io/
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
This project is licensed under the MIT license
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Configuration file for the Sphinx documentation builder.
|
|
2
|
+
#
|
|
3
|
+
# For the full list of built-in configuration values, see the documentation:
|
|
4
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
5
|
+
|
|
6
|
+
# -- Project information -----------------------------------------------------
|
|
7
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
project = 'usask_arg_example'
|
|
11
|
+
copyright = '2024, USask-ARG'
|
|
12
|
+
author = 'USask-ARG'
|
|
13
|
+
github_url = ''
|
|
14
|
+
|
|
15
|
+
from importlib.metadata import version as get_version
|
|
16
|
+
|
|
17
|
+
release: str = get_version(project)
|
|
18
|
+
# for example take major/minor
|
|
19
|
+
version: str = ".".join(release.split('.')[:2])
|
|
20
|
+
|
|
21
|
+
# -- General configuration ---------------------------------------------------
|
|
22
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
23
|
+
|
|
24
|
+
extensions = [
|
|
25
|
+
'sphinx.ext.autodoc',
|
|
26
|
+
'sphinx.ext.doctest',
|
|
27
|
+
'sphinx.ext.autosummary',
|
|
28
|
+
'sphinx.ext.coverage',
|
|
29
|
+
'sphinx.ext.mathjax',
|
|
30
|
+
'sphinx.ext.napoleon',
|
|
31
|
+
'myst_nb',
|
|
32
|
+
"sphinx.ext.viewcode",
|
|
33
|
+
"sphinx.ext.intersphinx",
|
|
34
|
+
#"sphinx_copybutton",
|
|
35
|
+
"sphinx_design",
|
|
36
|
+
#"sphinx_examples",
|
|
37
|
+
#"sphinx_tabs.tabs",
|
|
38
|
+
#"sphinx_thebe",
|
|
39
|
+
#"sphinx_togglebutton",
|
|
40
|
+
#"sphinxcontrib.bibtex",
|
|
41
|
+
#"sphinxext.opengraph",
|
|
42
|
+
# For the kitchen sink
|
|
43
|
+
"sphinx.ext.todo",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
templates_path = ['_templates']
|
|
47
|
+
exclude_patterns = []
|
|
48
|
+
|
|
49
|
+
autodoc_docstring_signature = True
|
|
50
|
+
autodoc_default_options = {
|
|
51
|
+
'members': True,
|
|
52
|
+
'show-inheritance': True,
|
|
53
|
+
'member_order': 'groupwise'
|
|
54
|
+
}
|
|
55
|
+
autoclass_content = 'both'
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# -- Options for HTML output -------------------------------------------------
|
|
60
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
61
|
+
|
|
62
|
+
html_theme = "sphinx_book_theme"
|
|
63
|
+
html_static_path = ['_static']
|
|
64
|
+
html_css_files = ["locals.css"]
|
|
65
|
+
|
|
66
|
+
html_theme_options = {
|
|
67
|
+
"github_url": github_url,
|
|
68
|
+
"repository_url": github_url,
|
|
69
|
+
"repository_branch": "main",
|
|
70
|
+
"path_to_docs": "docs/source",
|
|
71
|
+
"use_repository_button": True,
|
|
72
|
+
"use_edit_page_button": True,
|
|
73
|
+
"use_issues_button": True,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
nb_execution_timeout = 300
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
myst_enable_extensions = [
|
|
80
|
+
"dollarmath",
|
|
81
|
+
"amsmath",
|
|
82
|
+
"deflist",
|
|
83
|
+
# "html_admonition",
|
|
84
|
+
# "html_image",
|
|
85
|
+
"colon_fence",
|
|
86
|
+
# "smartquotes",
|
|
87
|
+
# "replacements",
|
|
88
|
+
# "linkify",
|
|
89
|
+
# "substitution",
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
intersphinx_mapping = {
|
|
93
|
+
"python": ("https://docs.python.org/3/", None),
|
|
94
|
+
"pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),
|
|
95
|
+
"numpy": ("https://numpy.org/doc/stable", None),
|
|
96
|
+
"scipy": ("https://docs.scipy.org/doc/scipy", None),
|
|
97
|
+
"matplotlib": ("https://matplotlib.org/stable/", None),
|
|
98
|
+
"dask": ("https://docs.dask.org/en/latest", None),
|
|
99
|
+
"sparse": ("https://sparse.pydata.org/en/latest/", None),
|
|
100
|
+
"xarray-tutorial": ("https://tutorial.xarray.dev/", None),
|
|
101
|
+
"xarray": ("https://docs.xarray.dev/en/stable/", None)
|
|
102
|
+
# "opt_einsum": ("https://dgasmith.github.io/opt_einsum/", None),
|
|
103
|
+
}
|