showlib 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.
Files changed (64) hide show
  1. showlib-2025.1.0/.github/dependabot.yml +11 -0
  2. showlib-2025.1.0/.github/workflows/release.yml +111 -0
  3. showlib-2025.1.0/.github/workflows/test.yml +82 -0
  4. showlib-2025.1.0/.gitignore +170 -0
  5. showlib-2025.1.0/.pre-commit-config.yaml +55 -0
  6. showlib-2025.1.0/.readthedocs.yaml +14 -0
  7. showlib-2025.1.0/Dockerfile +24 -0
  8. showlib-2025.1.0/LICENSE +21 -0
  9. showlib-2025.1.0/PKG-INFO +39 -0
  10. showlib-2025.1.0/README.md +17 -0
  11. showlib-2025.1.0/docs/source/conf.py +103 -0
  12. showlib-2025.1.0/docs/source/index.md +5 -0
  13. showlib-2025.1.0/pyproject.toml +125 -0
  14. showlib-2025.1.0/setup.cfg +4 -0
  15. showlib-2025.1.0/src/__init__.py +0 -0
  16. showlib-2025.1.0/src/showlib/__init__.py +0 -0
  17. showlib-2025.1.0/src/showlib/_version.py +16 -0
  18. showlib-2025.1.0/src/showlib/config.py +20 -0
  19. showlib-2025.1.0/src/showlib/data/l0.yml +33 -0
  20. showlib-2025.1.0/src/showlib/flights/__init__.py +0 -0
  21. showlib-2025.1.0/src/showlib/flights/er2_2023/Platform/ER2Platform.py +262 -0
  22. showlib-2025.1.0/src/showlib/flights/er2_2023/Platform/__init__.py +0 -0
  23. showlib-2025.1.0/src/showlib/flights/er2_2023/Specifications/__init__.py +0 -0
  24. showlib-2025.1.0/src/showlib/flights/er2_2023/Specifications/er2_2023.yaml +68 -0
  25. showlib-2025.1.0/src/showlib/flights/er2_2023/Specifications/shower2_specs.py +453 -0
  26. showlib-2025.1.0/src/showlib/flights/er2_2023/__init__.py +0 -0
  27. showlib-2025.1.0/src/showlib/flights/er2_2023/convert_l1b.py +151 -0
  28. showlib-2025.1.0/src/showlib/flights/er2_2023/convert_raw_l1a_to_l0_granules.py +46 -0
  29. showlib-2025.1.0/src/showlib/flights/er2_2023/l0_to_l1a.py +163 -0
  30. showlib-2025.1.0/src/showlib/flights/er2_2023/l1a/__init__.py +0 -0
  31. showlib-2025.1.0/src/showlib/flights/er2_2023/l1a/data.py +88 -0
  32. showlib-2025.1.0/src/showlib/flights/er2_2023/l1a/l1a.py +101 -0
  33. showlib-2025.1.0/src/showlib/flights/er2_2023/l1a/l1a_processing.py +48 -0
  34. showlib-2025.1.0/src/showlib/flights/er2_2023/l1bdata.py +152 -0
  35. showlib-2025.1.0/src/showlib/l0/__init__.py +0 -0
  36. showlib-2025.1.0/src/showlib/l0/data.py +45 -0
  37. showlib-2025.1.0/src/showlib/l1b/data.py +231 -0
  38. showlib-2025.1.0/src/showlib/l1b/l1b.py +407 -0
  39. showlib-2025.1.0/src/showlib/l1b/l1b_processing.py +150 -0
  40. showlib-2025.1.0/src/showlib/l2/data.py +78 -0
  41. showlib-2025.1.0/src/showlib/l2/optical.py +20 -0
  42. showlib-2025.1.0/src/showlib/l2/shifts.py +157 -0
  43. showlib-2025.1.0/src/showlib/l2/showmodel.py +146 -0
  44. showlib-2025.1.0/src/showlib/l2/solar/__init__.py +0 -0
  45. showlib-2025.1.0/src/showlib/l2/solar/kurucz.py +71 -0
  46. showlib-2025.1.0/src/showlib/l2/solar/model.py +33 -0
  47. showlib-2025.1.0/src/showlib/l2/solar/toon.py +24 -0
  48. showlib-2025.1.0/src/showlib/l2/spline.py +443 -0
  49. showlib-2025.1.0/src/showlib/netcdf.py +20 -0
  50. showlib-2025.1.0/src/showlib/por/l2/merra.py +203 -0
  51. showlib-2025.1.0/src/showlib/por/l2/process.py +159 -0
  52. showlib-2025.1.0/src/showlib/processing/__init__.py +0 -0
  53. showlib-2025.1.0/src/showlib/processing/l1a_to_l1b.py +79 -0
  54. showlib-2025.1.0/src/showlib/processing/l1b_to_l2.py +169 -0
  55. showlib-2025.1.0/src/showlib.egg-info/PKG-INFO +39 -0
  56. showlib-2025.1.0/src/showlib.egg-info/SOURCES.txt +62 -0
  57. showlib-2025.1.0/src/showlib.egg-info/dependency_links.txt +1 -0
  58. showlib-2025.1.0/src/showlib.egg-info/requires.txt +10 -0
  59. showlib-2025.1.0/src/showlib.egg-info/top_level.txt +2 -0
  60. showlib-2025.1.0/tests/l2/test_l2_data.py +5 -0
  61. showlib-2025.1.0/workflows/er2_2023/Snakefile +40 -0
  62. showlib-2025.1.0/workflows/er2_2023/scripts/convert_l1b_to_granules.py +16 -0
  63. showlib-2025.1.0/workflows/er2_2023/scripts/generate_l2.py +9 -0
  64. showlib-2025.1.0/workflows/er2_2023/scripts/generate_por.py +7 -0
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ # Check for updates once a week
7
+ interval: 'weekly'
8
+ groups:
9
+ actions:
10
+ patterns:
11
+ - "*"
@@ -0,0 +1,111 @@
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_wheel:
14
+ name: Build Wheel
15
+ runs-on: ubuntu-latest
16
+ if: github.repository_owner == 'usask-arg'
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ submodules: true
21
+ fetch-depth: 0
22
+ - uses: actions/setup-python@v4
23
+ name: Install Python
24
+ with:
25
+ python-version: "3.12"
26
+
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ python -m pip install build twine
31
+
32
+ - name: Build tarball and wheels
33
+ run: |
34
+ git clean -xdf
35
+ git restore -SW .
36
+ python -m build
37
+
38
+ - name: Check built artifacts
39
+ run: |
40
+ python -m twine check --strict dist/*
41
+ pwd
42
+ if [ -f dist/*-0.0.0.tar.gz ]; then
43
+ echo "❌ INVALID VERSION NUMBER"
44
+ exit 1
45
+ else
46
+ echo "✅ Looks good"
47
+ fi
48
+ - uses: actions/upload-artifact@v4
49
+ with:
50
+ name: releases
51
+ path: dist
52
+
53
+ upload_wheels:
54
+ runs-on: ubuntu-latest
55
+ needs: build_wheel
56
+ environment:
57
+ name: pypi
58
+ url: https://pypi.org/p/showlib
59
+ permissions:
60
+ id-token: write
61
+ if: (github.event_name == 'release')
62
+ steps:
63
+ - uses: actions/setup-python@v4
64
+ with:
65
+ python-version: "3.x"
66
+
67
+ - uses: actions/download-artifact@v4
68
+ with:
69
+ name: releases
70
+ path: dist
71
+
72
+ - name: Publish package to PyPI
73
+ uses: pypa/gh-action-pypi-publish@v1.8.7
74
+ with:
75
+ verbose: true
76
+
77
+
78
+ build-and-push-image:
79
+ name: Build and push Docker image
80
+ env:
81
+ REGISTRY: ghcr.io
82
+ IMAGE_NAME: ${{ github.repository }}
83
+ runs-on: ubuntu-latest
84
+ permissions:
85
+ contents: read
86
+ packages: write
87
+
88
+ steps:
89
+ - name: Checkout repository
90
+ uses: actions/checkout@v3
91
+
92
+ - name: Log in to the Container registry
93
+ uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
94
+ with:
95
+ registry: ${{ env.REGISTRY }}
96
+ username: ${{ github.actor }}
97
+ password: ${{ secrets.GITHUB_TOKEN }}
98
+
99
+ - name: Extract metadata (tags, labels) for Docker
100
+ id: meta
101
+ uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
102
+ with:
103
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
104
+
105
+ - name: Build and push Docker image
106
+ uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
107
+ with:
108
+ context: .
109
+ push: true
110
+ tags: ${{ steps.meta.outputs.tags }}
111
+ labels: ${{ steps.meta.outputs.labels }}
@@ -0,0 +1,82 @@
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 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
+ with:
60
+ fetch-depth: 0
61
+ submodules: true
62
+
63
+ - name: Log in to the Container registry
64
+ uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
65
+ with:
66
+ registry: ${{ env.REGISTRY }}
67
+ username: ${{ github.actor }}
68
+ password: ${{ secrets.GITHUB_TOKEN }}
69
+
70
+ - name: Extract metadata (tags, labels) for Docker
71
+ id: meta
72
+ uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
73
+ with:
74
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
75
+
76
+ - name: Build Docker image
77
+ uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
78
+ with:
79
+ context: .
80
+ push: false
81
+ tags: ${{ steps.meta.outputs.tags }}
82
+ 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
+ src/showlib/_version.py
162
+ local_scripts
163
+ .vscode/
164
+ snake/
165
+ *.snakemake*
166
+
167
+ *.DS_Store
168
+ .pixi
169
+ .ruff_cache
170
+ pixi.lock
@@ -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: v4.4.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: 23.9.1
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.0.292"
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.4
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,39 @@
1
+ Metadata-Version: 2.2
2
+ Name: showlib
3
+ Version: 2025.1.0
4
+ Summary: Research and development libraries developed at the University of Saskatchewan for the SHOW instrument
5
+ Author: usask-arg developers
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: netcdf4
16
+ Requires-Dist: xarray
17
+ Requires-Dist: skretrieval
18
+ Provides-Extra: test
19
+ Requires-Dist: pytest; extra == "test"
20
+ Provides-Extra: plotting
21
+ Requires-Dist: matplotlib; extra == "plotting"
22
+
23
+ # showlib
24
+
25
+ [![Documentation Status](https://readthedocs.org/projects/showlib/badge/?version=latest)](https://showlib.readthedocs.io/en/latest/?badge=latest)
26
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/usask-arg/showlib/main.svg)](https://results.pre-commit.ci/latest/github/usask-arg/showlib/main)
27
+
28
+ Research and development libraries developed at the University of Saskatchewan for the SHOW instrument
29
+
30
+ ## Installation
31
+ The package can be installed through
32
+
33
+ `pip install showlib`
34
+
35
+ ## Usage
36
+ Documentation can be found at https://showlib.readthedocs.io/
37
+
38
+ ## License
39
+ This project is licensed under the MIT license
@@ -0,0 +1,17 @@
1
+ # showlib
2
+
3
+ [![Documentation Status](https://readthedocs.org/projects/showlib/badge/?version=latest)](https://showlib.readthedocs.io/en/latest/?badge=latest)
4
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/usask-arg/showlib/main.svg)](https://results.pre-commit.ci/latest/github/usask-arg/showlib/main)
5
+
6
+ Research and development libraries developed at the University of Saskatchewan for the SHOW instrument
7
+
8
+ ## Installation
9
+ The package can be installed through
10
+
11
+ `pip install showlib`
12
+
13
+ ## Usage
14
+ Documentation can be found at https://showlib.readthedocs.io/
15
+
16
+ ## License
17
+ This project is licensed under the MIT license
@@ -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 = 'showlib'
11
+ copyright = '2024, USask-ARG'
12
+ author = 'USask-ARG'
13
+ github_url = 'https://github.com/usask-arg/show-lib'
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
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ sd_hide_title: false
3
+ ---
4
+
5
+ # Package Name