anemoi-utils 0.1.3__tar.gz → 0.1.6__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.

Potentially problematic release.


This version of anemoi-utils might be problematic. Click here for more details.

Files changed (45) hide show
  1. anemoi_utils-0.1.6/.github/workflows/python-publish.yml +76 -0
  2. anemoi_utils-0.1.6/.gitignore +187 -0
  3. anemoi_utils-0.1.6/.pre-commit-config.yaml +69 -0
  4. anemoi_utils-0.1.6/.readthedocs.yaml +17 -0
  5. anemoi_utils-0.1.6/PKG-INFO +252 -0
  6. anemoi_utils-0.1.6/docs/Makefile +22 -0
  7. anemoi_utils-0.1.6/docs/_static/logo.png +0 -0
  8. anemoi_utils-0.1.6/docs/_static/style.css +48 -0
  9. anemoi_utils-0.1.6/docs/_templates/.gitkeep +0 -0
  10. anemoi_utils-0.1.6/docs/conf.py +120 -0
  11. anemoi_utils-0.1.6/docs/index.rst +59 -0
  12. anemoi_utils-0.1.6/docs/installing.rst +34 -0
  13. anemoi_utils-0.1.6/docs/modules/checkpoints.rst +8 -0
  14. anemoi_utils-0.1.6/docs/modules/config.rst +8 -0
  15. anemoi_utils-0.1.6/docs/modules/dates.rst +8 -0
  16. anemoi_utils-0.1.6/docs/modules/grib.rst +8 -0
  17. anemoi_utils-0.1.6/docs/modules/humanize.rst +8 -0
  18. anemoi_utils-0.1.6/docs/modules/provenance.rst +8 -0
  19. anemoi_utils-0.1.6/docs/modules/text.rst +8 -0
  20. anemoi_utils-0.1.6/docs/requirements.txt +9 -0
  21. anemoi_utils-0.1.6/pyproject.toml +90 -0
  22. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi/utils/__init__.py +1 -1
  23. anemoi_utils-0.1.6/src/anemoi/utils/_version.py +16 -0
  24. anemoi_utils-0.1.6/src/anemoi/utils/config.py +94 -0
  25. anemoi_utils-0.1.6/src/anemoi/utils/dates.py +248 -0
  26. anemoi_utils-0.1.6/src/anemoi/utils/grib.py +73 -0
  27. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi/utils/humanize.py +35 -19
  28. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi/utils/text.py +46 -18
  29. anemoi_utils-0.1.6/src/anemoi_utils.egg-info/PKG-INFO +252 -0
  30. anemoi_utils-0.1.6/src/anemoi_utils.egg-info/SOURCES.txt +38 -0
  31. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi_utils.egg-info/requires.txt +12 -2
  32. anemoi_utils-0.1.6/tests/requirements.txt +1 -0
  33. anemoi_utils-0.1.6/tests/test_utils.py +30 -0
  34. anemoi-utils-0.1.3/PKG-INFO +0 -68
  35. anemoi-utils-0.1.3/anemoi_utils.egg-info/PKG-INFO +0 -68
  36. anemoi-utils-0.1.3/anemoi_utils.egg-info/SOURCES.txt +0 -14
  37. anemoi-utils-0.1.3/anemoi_utils.egg-info/zip-safe +0 -1
  38. anemoi-utils-0.1.3/setup.py +0 -83
  39. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6}/LICENSE +0 -0
  40. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6}/README.md +0 -0
  41. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6}/setup.cfg +0 -0
  42. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi/utils/checkpoints.py +0 -0
  43. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi/utils/provenance.py +0 -0
  44. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi_utils.egg-info/dependency_links.txt +0 -0
  45. {anemoi-utils-0.1.3 → anemoi_utils-0.1.6/src}/anemoi_utils.egg-info/top_level.txt +0 -0
@@ -0,0 +1,76 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
4
+ name: Upload Python Package
5
+
6
+ on:
7
+
8
+ push: {}
9
+
10
+ release:
11
+ types: [created]
12
+
13
+ jobs:
14
+ quality:
15
+ name: Code QA
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - run: sudo apt-get install -y pandoc # Needed by sphinx for notebooks
19
+ - uses: actions/checkout@v4
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: 3.x
23
+ - uses: pre-commit/action@v3.0.1
24
+
25
+ checks:
26
+ strategy:
27
+ fail-fast: false
28
+ matrix:
29
+ platform: ["ubuntu-latest", "macos-latest"]
30
+ python-version: ["3.10"]
31
+
32
+ name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
33
+ runs-on: ${{ matrix.platform }}
34
+
35
+ steps:
36
+ - uses: actions/checkout@v4
37
+
38
+ - uses: actions/setup-python@v2
39
+ with:
40
+ python-version: ${{ matrix.python-version }}
41
+
42
+ - name: Install
43
+ run: |
44
+ pip install pytest
45
+ pip install -e .[all]
46
+ pip install -r tests/requirements.txt
47
+ pip freeze
48
+
49
+ - name: Tests
50
+ run: pytest
51
+
52
+ deploy:
53
+
54
+ if: ${{ github.event_name == 'release' }}
55
+ runs-on: ubuntu-latest
56
+ needs: [checks, quality]
57
+
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+
61
+ - name: Set up Python
62
+ uses: actions/setup-python@v2
63
+ with:
64
+ python-version: 3.x
65
+
66
+ - name: Install dependencies
67
+ run: |
68
+ python -m pip install --upgrade pip
69
+ pip install build wheel twine
70
+ - name: Build and publish
71
+ env:
72
+ TWINE_USERNAME: __token__
73
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
74
+ run: |
75
+ python -m build
76
+ twine upload dist/*
@@ -0,0 +1,187 @@
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
+ *.grib
163
+ *.onnx
164
+ *.ckpt
165
+ *.swp
166
+ *.npy
167
+ *.download
168
+ ?
169
+ ?.*
170
+ foo
171
+ bar
172
+ *.grib
173
+ *.nc
174
+ *.npz
175
+ *.json
176
+ *.zarr/
177
+ ~$images.pptx
178
+ test.py
179
+ cutout.png
180
+ *.out
181
+
182
+ _build/
183
+ ?
184
+ ?.*
185
+ ~*
186
+ *.sync
187
+ _version.py
@@ -0,0 +1,69 @@
1
+ repos:
2
+
3
+ # Empty notebookds
4
+ - repo: local
5
+ hooks:
6
+ - id: clear-notebooks-output
7
+ name: clear-notebooks-output
8
+ files: tools/.*\.ipynb$
9
+ stages: [commit]
10
+ language: python
11
+ entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
12
+ additional_dependencies: [jupyter]
13
+
14
+
15
+ - repo: https://github.com/pre-commit/pre-commit-hooks
16
+ rev: v4.4.0
17
+ hooks:
18
+ - id: check-yaml # Check YAML files for syntax errors only
19
+ args: [--unsafe, --allow-multiple-documents]
20
+ - id: debug-statements # Check for debugger imports and py37+ breakpoint()
21
+ - id: end-of-file-fixer # Ensure files end in a newline
22
+ - id: trailing-whitespace # Trailing whitespace checker
23
+ - id: no-commit-to-branch # Prevent committing to main / master
24
+ - id: check-added-large-files # Check for large files added to git
25
+ - id: check-merge-conflict # Check for files that contain merge conflict
26
+
27
+ - repo: https://github.com/psf/black-pre-commit-mirror
28
+ rev: 24.1.1
29
+ hooks:
30
+ - id: black
31
+ args: [--line-length=120]
32
+
33
+ - repo: https://github.com/pycqa/isort
34
+ rev: 5.13.2
35
+ hooks:
36
+ - id: isort
37
+ args:
38
+ - -l 120
39
+ - --force-single-line-imports
40
+ - --profile black
41
+
42
+
43
+ - repo: https://github.com/astral-sh/ruff-pre-commit
44
+ rev: v0.3.0
45
+ hooks:
46
+ - id: ruff
47
+ exclude: '(dev/.*|.*_)\.py$'
48
+ args:
49
+ - --line-length=120
50
+ - --fix
51
+ - --exit-non-zero-on-fix
52
+ - --preview
53
+
54
+ - repo: https://github.com/sphinx-contrib/sphinx-lint
55
+ rev: v0.9.1
56
+ hooks:
57
+ - id: sphinx-lint
58
+
59
+ # For now, we use it. But it does not support a lot of sphinx features
60
+ - repo: https://github.com/dzhu/rstfmt
61
+ rev: v0.0.14
62
+ hooks:
63
+ - id: rstfmt
64
+
65
+ # - repo: ../pre-commit-docconvert
66
+ # rev: 07f5748
67
+ # hooks:
68
+ # - id: docconvert
69
+ # args: ["--in-place", "--output", "numpy"]
@@ -0,0 +1,17 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: ubuntu-22.04
5
+ tools:
6
+ python: "3.11"
7
+
8
+ sphinx:
9
+ configuration: docs/conf.py
10
+
11
+ python:
12
+ install:
13
+ - requirements: docs/requirements.txt
14
+ - method: pip
15
+ path: .
16
+ extra_requirements:
17
+ - docs
@@ -0,0 +1,252 @@
1
+ Metadata-Version: 2.1
2
+ Name: anemoi-utils
3
+ Version: 0.1.6
4
+ Summary: A package to hold various functions to support training of ML models on ECMWF data.
5
+ Author-email: "European Centre for Medium-Range Weather Forecasts (ECMWF)" <software.support@ecmwf.int>
6
+ License: Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to reproduce, prepare Derivative Works of,
75
+ publicly display, publicly perform, sublicense, and distribute the
76
+ Work and such Derivative Works in Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright statement to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing
171
+ the Work or Derivative Works thereof, You may choose to offer,
172
+ and charge a fee for, acceptance of support, warranty, indemnity,
173
+ or other liability obligations and/or rights consistent with this
174
+ License. However, in accepting such obligations, You may act only
175
+ on Your own behalf and on Your sole responsibility, not on behalf
176
+ of any other Contributor, and only if You agree to indemnify,
177
+ defend, and hold each Contributor harmless for any liability
178
+ incurred by, or claims asserted against, such Contributor by reason
179
+ of your accepting any such warranty or additional liability.
180
+
181
+ END OF TERMS AND CONDITIONS
182
+
183
+ APPENDIX: How to apply the Apache License to your work.
184
+
185
+ To apply the Apache License to your work, attach the following
186
+ boilerplate notice, with the fields enclosed by brackets "[]"
187
+ replaced with your own identifying information. (Don't include
188
+ the brackets!) The text should be enclosed in the appropriate
189
+ comment syntax for the file format. We also recommend that a
190
+ file or class name and description of purpose be included on the
191
+ same "printed page" as the copyright notice for easier
192
+ identification within third-party archives.
193
+
194
+ Copyright [yyyy] [name of copyright owner]
195
+
196
+ Licensed under the Apache License, Version 2.0 (the "License");
197
+ you may not use this file except in compliance with the License.
198
+ You may obtain a copy of the License at
199
+
200
+ http://www.apache.org/licenses/LICENSE-2.0
201
+
202
+ Unless required by applicable law or agreed to in writing, software
203
+ distributed under the License is distributed on an "AS IS" BASIS,
204
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
+ See the License for the specific language governing permissions and
206
+ limitations under the License.
207
+
208
+ Project-URL: Homepage, https://github.com/ecmwf/anemoi-utils/
209
+ Project-URL: Documentation, https://anemoi-utils.readthedocs.io/
210
+ Project-URL: Repository, https://github.com/ecmwf/anemoi-utils/
211
+ Project-URL: Issues, https://github.com/ecmwf/anemoi-utils/issues
212
+ Keywords: tools,ai
213
+ Classifier: Development Status :: 4 - Beta
214
+ Classifier: Intended Audience :: Developers
215
+ Classifier: License :: OSI Approved :: Apache Software License
216
+ Classifier: Programming Language :: Python :: 3
217
+ Classifier: Programming Language :: Python :: 3.9
218
+ Classifier: Programming Language :: Python :: 3.10
219
+ Classifier: Programming Language :: Python :: 3.11
220
+ Classifier: Programming Language :: Python :: Implementation :: CPython
221
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
222
+ Classifier: Operating System :: OS Independent
223
+ Requires-Python: >=3.9
224
+ License-File: LICENSE
225
+ Requires-Dist: tomli
226
+ Provides-Extra: provenance
227
+ Requires-Dist: GitPython; extra == "provenance"
228
+ Requires-Dist: nvsmi; extra == "provenance"
229
+ Provides-Extra: text
230
+ Requires-Dist: termcolor; extra == "text"
231
+ Provides-Extra: grib
232
+ Requires-Dist: requests; extra == "grib"
233
+ Provides-Extra: docs
234
+ Requires-Dist: tomli; extra == "docs"
235
+ Requires-Dist: termcolor; extra == "docs"
236
+ Requires-Dist: requests; extra == "docs"
237
+ Provides-Extra: all
238
+ Requires-Dist: tomli; extra == "all"
239
+ Requires-Dist: GitPython; extra == "all"
240
+ Requires-Dist: nvsmi; extra == "all"
241
+ Requires-Dist: termcolor; extra == "all"
242
+ Requires-Dist: requests; extra == "all"
243
+ Provides-Extra: dev
244
+ Requires-Dist: tomli; extra == "dev"
245
+ Requires-Dist: GitPython; extra == "dev"
246
+ Requires-Dist: nvsmi; extra == "dev"
247
+ Requires-Dist: termcolor; extra == "dev"
248
+ Requires-Dist: requests; extra == "dev"
249
+ Requires-Dist: sphinx; extra == "dev"
250
+ Requires-Dist: sphinx_rtd_theme; extra == "dev"
251
+ Requires-Dist: nbsphinx; extra == "dev"
252
+ Requires-Dist: pandoc; extra == "dev"
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env make -f
2
+
3
+ # Minimal makefile for Sphinx documentation
4
+ #
5
+
6
+ # You can set these variables from the command line, and also
7
+ # from the environment for the first two.
8
+ SPHINXOPTS ?=
9
+ SPHINXBUILD ?= sphinx-build
10
+ SOURCEDIR = .
11
+ BUILDDIR = _build
12
+
13
+ # Put it first so that "make" without argument is like "make help".
14
+ help:
15
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
16
+
17
+ .PHONY: help Makefile
18
+
19
+ # Catch-all target: route all unknown targets to Sphinx using the new
20
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
21
+ %: Makefile
22
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file
@@ -0,0 +1,48 @@
1
+ .wy-side-nav-search {
2
+ background-color: #f7f7f7;
3
+ }
4
+
5
+ /*There is a clash between xarray notebook styles and readthedoc*/
6
+
7
+ .rst-content dl.xr-attrs dt {
8
+ all: revert;
9
+ font-size: 95%;
10
+ white-space: nowrap;
11
+ }
12
+
13
+ .rst-content dl.xr-attrs dd {
14
+ font-size: 95%;
15
+ }
16
+
17
+ .xr-wrap {
18
+ font-size: 85%;
19
+ }
20
+
21
+ .wy-table-responsive table td, .wy-table-responsive table th {
22
+ white-space: inherit;
23
+ }
24
+
25
+ /*
26
+ .wy-table-responsive table td,
27
+ .wy-table-responsive table th {
28
+ white-space: normal !important;
29
+ vertical-align: top !important;
30
+ }
31
+
32
+ .wy-table-responsive {
33
+ margin-bottom: 24px;
34
+ max-width: 100%;
35
+ overflow: visible;
36
+ } */
37
+
38
+ /* Hide notebooks warnings */
39
+ .nboutput .stderr {
40
+ display: none;
41
+ }
42
+
43
+ /*
44
+ Set logo size
45
+ */
46
+ .wy-side-nav-search .wy-dropdown > a img.logo, .wy-side-nav-search > a img.logo {
47
+ width: 200px;
48
+ }
File without changes