Skip to content

Commit 5dec524

Browse files
authored
Merge pull request #39 from axiom-data-science/add_plots
Added new plot option
2 parents 5b691f3 + 7b534c2 commit 5dec524

File tree

14 files changed

+826
-102
lines changed

14 files changed

+826
-102
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ jobs:
6565
run: |
6666
pytest --cov=./ --cov-report=xml
6767
- name: Upload code coverage to Codecov
68+
uses: actions/checkout@main
6869
uses: codecov/codecov-action@v5
6970
with:
70-
file: ./coverage.xml
71+
files: ./coverage.xml
7172
flags: unittests
7273
env_vars: OS,PYTHON
7374
name: codecov-umbrella

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/econchick/interrogate
3-
rev: 1.5.0
3+
rev: 1.6.0
44
hooks:
55
- id: interrogate
66
exclude: ^(docs|setup.py|tests)

docs/configuration.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ m = ptm.OpenDriftModel(drift_model="OpenOil")
225225

226226
This selection sets some of the configuration details and export variables that are relevant for the simulation.
227227

228-
228+
(config:export_variables)=
229229
#### Export Variables
230230

231231
All possible variables will be exported by default into the outfiles and available in memory (`m.o.history` and `m.o.history_metadata` or `m.o.get_property(<key>)` for `OpenDriftModel`).
@@ -236,13 +236,44 @@ The full list of possible variables to be exported is available with
236236
m.all_export_variables()
237237
```
238238

239-
To limit the variables saved in the export file, input a list of just the variables that you want to save, keeping in mind that `['lon', 'lat', 'ID', 'status']` will also be included regardless. For example:
239+
To limit the variables saved in the export file, input a list of just the variables that you want to save, keeping in mind that `['lon', 'lat', 'ID', 'status','z']` will also be included regardless. For example:
240240
```
241241
m = ptm.OpenDriftModel(export_variables=[])
242242
```
243243

244-
The default list of `export_variables` is set in `config_model` but is modified depending on the `drift_model` set.
244+
The default list of `export_variables` is set in `config_model` but is modified depending on the `drift_model` set and the `export_variables` input by the user.
245+
246+
The export variables available for each model at time of running these docs is shown as follows.
247+
248+
##### OceanDrift
249+
250+
```{code-cell} ipython3
251+
import particle_tracking_manager as ptm
252+
253+
m = ptm.OpenDriftModel(drift_model="Leeway")
254+
m.all_export_variables()
255+
```
256+
257+
##### Leeway
258+
259+
```{code-cell} ipython3
260+
m = ptm.OpenDriftModel(drift_model="Leeway")
261+
m.all_export_variables()
262+
```
263+
264+
##### LarvalFish
265+
266+
```{code-cell} ipython3
267+
m = ptm.OpenDriftModel(drift_model="LarvalFish", do3D=True)
268+
m.all_export_variables()
269+
```
270+
271+
##### OpenOil
245272

273+
```{code-cell} ipython3
274+
m = ptm.OpenDriftModel(drift_model="OpenOil")
275+
m.all_export_variables()
276+
```
246277

247278
#### How to modify details for Stokes Drift
248279

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ To install from PyPI:
2525
quick_start
2626
tutorial
2727
configuration
28+
plots
2829

2930

3031
.. toctree::

0 commit comments

Comments
 (0)