roms-tools 0.1.0__tar.gz → 0.20__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.
- {roms_tools-0.1.0 → roms_tools-0.20}/.github/workflows/sphinx.yaml +6 -5
- roms_tools-0.20/.github/workflows/tests.yaml +57 -0
- {roms_tools-0.1.0/roms_tools.egg-info → roms_tools-0.20}/PKG-INFO +3 -2
- {roms_tools-0.1.0 → roms_tools-0.20}/README.md +2 -1
- {roms_tools-0.1.0 → roms_tools-0.20}/ci/environment.yml +1 -0
- roms_tools-0.20/coverage.toml +5 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/api.rst +24 -0
- roms_tools-0.20/docs/atmospheric_forcing.ipynb +9332 -0
- roms_tools-0.20/docs/boundary_forcing.ipynb +7099 -0
- roms_tools-0.20/docs/forcings/bdry_forcing.nc +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/grid.ipynb +1124 -362
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/index.rst +3 -0
- roms_tools-0.20/docs/initial_conditions.ipynb +4477 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/references.bib +19 -2
- roms_tools-0.20/docs/tides.ipynb +2668 -0
- roms_tools-0.20/docs/vertical_coordinate.ipynb +2688 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools/__init__.py +3 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools/_version.py +1 -1
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools/setup/atmospheric_forcing.py +335 -393
- roms_tools-0.20/roms_tools/setup/boundary_forcing.py +711 -0
- roms_tools-0.20/roms_tools/setup/datasets.py +457 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools/setup/fill.py +118 -5
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools/setup/grid.py +145 -19
- roms_tools-0.20/roms_tools/setup/initial_conditions.py +528 -0
- roms_tools-0.20/roms_tools/setup/plot.py +203 -0
- roms_tools-0.20/roms_tools/setup/tides.py +809 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools/setup/topography.py +17 -2
- roms_tools-0.20/roms_tools/setup/utils.py +162 -0
- roms_tools-0.20/roms_tools/setup/vertical_coordinate.py +494 -0
- roms_tools-0.20/roms_tools/tests/test_atmospheric_forcing.py +1645 -0
- roms_tools-0.20/roms_tools/tests/test_boundary_forcing.py +332 -0
- roms_tools-0.20/roms_tools/tests/test_datasets.py +306 -0
- roms_tools-0.20/roms_tools/tests/test_grid.py +226 -0
- roms_tools-0.20/roms_tools/tests/test_initial_conditions.py +300 -0
- roms_tools-0.20/roms_tools/tests/test_tides.py +366 -0
- roms_tools-0.20/roms_tools/tests/test_topography.py +78 -0
- roms_tools-0.20/roms_tools/tests/test_vertical_coordinate.py +337 -0
- {roms_tools-0.1.0 → roms_tools-0.20/roms_tools.egg-info}/PKG-INFO +3 -2
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools.egg-info/SOURCES.txt +17 -1
- roms_tools-0.1.0/.github/workflows/tests.yaml +0 -46
- roms_tools-0.1.0/docs/atmospheric_forcing.ipynb +0 -6698
- roms_tools-0.1.0/docs/tides.ipynb +0 -1485
- roms_tools-0.1.0/roms_tools/setup/datasets.py +0 -48
- roms_tools-0.1.0/roms_tools/setup/plot.py +0 -58
- roms_tools-0.1.0/roms_tools/setup/tides.py +0 -676
- roms_tools-0.1.0/roms_tools/tests/test_setup.py +0 -181
- {roms_tools-0.1.0 → roms_tools-0.20}/.github/workflows/pre-commit.yaml +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/.github/workflows/pypipublish.yaml +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/.gitignore +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/.pre-commit-config.yaml +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/.readthedocs.yaml +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/LICENSE +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/Makefile +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/_templates/autosummary/class.rst +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/conf.py +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/images/Step1.png +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/images/Step2.png +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/images/Step3.png +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/images/Step4.png +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/installation.rst +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/make.bat +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/methods.rst +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/references.rst +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/docs/support.rst +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/pyproject.toml +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools/setup/__init__.py +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools.egg-info/dependency_links.txt +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools.egg-info/requires.txt +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/roms_tools.egg-info/top_level.txt +0 -0
- {roms_tools-0.1.0 → roms_tools-0.20}/setup.cfg +0 -0
|
@@ -8,22 +8,23 @@ on:
|
|
|
8
8
|
jobs:
|
|
9
9
|
docs:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
|
-
defaults:
|
|
12
|
-
run:
|
|
13
|
-
shell: bash -l {0}
|
|
14
11
|
steps:
|
|
15
12
|
- uses: actions/checkout@v4
|
|
16
13
|
- name: Create conda environment
|
|
17
|
-
uses: mamba-org/
|
|
14
|
+
uses: mamba-org/setup-micromamba@v1
|
|
18
15
|
with:
|
|
19
16
|
cache-downloads: true
|
|
17
|
+
cache-environment: true
|
|
20
18
|
micromamba-version: 'latest'
|
|
21
19
|
environment-file: ci/environment.yml
|
|
22
|
-
|
|
20
|
+
create-args: |
|
|
23
21
|
python=${{ matrix.python-version }}
|
|
24
22
|
- name: Install roms-tools
|
|
23
|
+
shell: micromamba-shell {0}
|
|
25
24
|
run: |
|
|
25
|
+
python - V
|
|
26
26
|
python -m pip install -e . --no-deps --force-reinstall
|
|
27
27
|
- name: Build Docs
|
|
28
|
+
shell: bash -l {0}
|
|
28
29
|
run: |
|
|
29
30
|
cd docs ; make fresh; make html
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
|
|
13
|
+
test:
|
|
14
|
+
name: ${{ matrix.python-version }}-build
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Create conda environment
|
|
23
|
+
uses: mamba-org/setup-micromamba@v1
|
|
24
|
+
with:
|
|
25
|
+
cache-downloads: true
|
|
26
|
+
cache-environment: true
|
|
27
|
+
micromamba-version: 'latest'
|
|
28
|
+
environment-file: ci/environment.yml
|
|
29
|
+
create-args: |
|
|
30
|
+
python=${{ matrix.python-version }}
|
|
31
|
+
|
|
32
|
+
- name: Conda info
|
|
33
|
+
run: conda info
|
|
34
|
+
|
|
35
|
+
- name: Install roms-tools
|
|
36
|
+
shell: micromamba-shell {0}
|
|
37
|
+
run: |
|
|
38
|
+
python - V
|
|
39
|
+
python -m pip install -e . --no-deps --force-reinstall
|
|
40
|
+
|
|
41
|
+
- name: Running Tests
|
|
42
|
+
shell: bash -l {0}
|
|
43
|
+
run: |
|
|
44
|
+
python -V
|
|
45
|
+
coverage run --rcfile=coverage.toml -m pytest --verbose roms_tools/tests/test_datasets.py roms_tools/tests/test_grid.py roms_tools/tests/test_topography.py roms_tools/tests/test_tides.py roms_tools/tests/test_atmospheric_forcing.py roms_tools/tests/test_initial_conditions.py roms_tools/tests/test_vertical_coordinate.py roms_tools/tests/test_boundary_forcing.py
|
|
46
|
+
|
|
47
|
+
- name: Get coverage report
|
|
48
|
+
shell: bash -l {0}
|
|
49
|
+
run: |
|
|
50
|
+
coverage report -m ; coverage xml
|
|
51
|
+
|
|
52
|
+
- name: Upload coverage reports to Codecov
|
|
53
|
+
uses: codecov/codecov-action@v4.0.1
|
|
54
|
+
with:
|
|
55
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
56
|
+
files: ./coverage.xml
|
|
57
|
+
flags: unittests # optional
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: roms-tools
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.20
|
|
4
4
|
Summary: Tools for running and analysing UCLA-ROMS simulations
|
|
5
5
|
Author-email: Nora Loose <nora.loose@gmail.com>, Thomas Nicholas <tom@cworthy.org>
|
|
6
6
|
License: Apache-2
|
|
@@ -31,6 +31,7 @@ Requires-Dist: numba
|
|
|
31
31
|
|
|
32
32
|
# ROMS-Tools
|
|
33
33
|
|
|
34
|
+
[](https://codecov.io/gh/CWorthy-ocean/roms-tools)
|
|
34
35
|
[](https://roms-tools.readthedocs.io/en/latest/?badge=latest)
|
|
35
36
|
[](https://badge.fury.io/py/roms-tools)
|
|
36
37
|
|
|
@@ -59,7 +60,7 @@ pip install -e .
|
|
|
59
60
|
|
|
60
61
|
### Run the tests
|
|
61
62
|
|
|
62
|
-
Before running the tests you can install and activate the following conda environment:
|
|
63
|
+
Before running the tests, you can install and activate the following conda environment:
|
|
63
64
|
|
|
64
65
|
```bash
|
|
65
66
|
cd roms-tools
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# ROMS-Tools
|
|
2
2
|
|
|
3
|
+
[](https://codecov.io/gh/CWorthy-ocean/roms-tools)
|
|
3
4
|
[](https://roms-tools.readthedocs.io/en/latest/?badge=latest)
|
|
4
5
|
[](https://badge.fury.io/py/roms-tools)
|
|
5
6
|
|
|
@@ -28,7 +29,7 @@ pip install -e .
|
|
|
28
29
|
|
|
29
30
|
### Run the tests
|
|
30
31
|
|
|
31
|
-
Before running the tests you can install and activate the following conda environment:
|
|
32
|
+
Before running the tests, you can install and activate the following conda environment:
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
35
|
cd roms-tools
|
|
@@ -10,6 +10,14 @@ Grid
|
|
|
10
10
|
|
|
11
11
|
roms_tools.Grid
|
|
12
12
|
|
|
13
|
+
Vertical Coordinate
|
|
14
|
+
------------------------
|
|
15
|
+
|
|
16
|
+
.. autosummary::
|
|
17
|
+
:toctree: generated/
|
|
18
|
+
|
|
19
|
+
roms_tools.VerticalCoordinate
|
|
20
|
+
|
|
13
21
|
Tidal Forcing
|
|
14
22
|
------------------
|
|
15
23
|
|
|
@@ -27,4 +35,20 @@ Atmospheric Forcing
|
|
|
27
35
|
roms_tools.AtmosphericForcing
|
|
28
36
|
roms_tools.SWRCorrection
|
|
29
37
|
|
|
38
|
+
Initial Conditions
|
|
39
|
+
--------------------
|
|
40
|
+
|
|
41
|
+
.. autosummary::
|
|
42
|
+
:toctree: generated/
|
|
43
|
+
|
|
44
|
+
roms_tools.InitialConditions
|
|
45
|
+
|
|
46
|
+
Boundary Forcing
|
|
47
|
+
--------------------
|
|
48
|
+
|
|
49
|
+
.. autosummary::
|
|
50
|
+
:toctree: generated/
|
|
51
|
+
|
|
52
|
+
roms_tools.BoundaryForcing
|
|
53
|
+
|
|
30
54
|
=======
|