-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: test_env_particle-tracking-manager | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.10 | ||
############## These will have to be adjusted to your specific project | ||
- adios_db | ||
- aiohttp | ||
- numpy | ||
- scipy | ||
- xarray | ||
############## | ||
- pytest | ||
- pip: | ||
- codecov | ||
- pytest-cov | ||
- coverage[toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: test_env_particle-tracking-manager | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.11 | ||
############## These will have to be adjusted to your specific project | ||
- adios_db | ||
- aiohttp | ||
- numpy | ||
- scipy | ||
- xarray | ||
############## | ||
- pytest | ||
- pip: | ||
- codecov | ||
- pytest-cov | ||
- coverage[toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: test_env_particle-tracking-manager | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
############## These will have to be adjusted to your specific project | ||
- adios_db | ||
- aiohttp | ||
- numpy | ||
- scipy | ||
- xarray | ||
############## | ||
- pytest | ||
- pip: | ||
- codecov | ||
- pytest-cov | ||
- coverage[toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
"""Particle Tracking Manager.""" | ||
|
||
from .model_opendrift import OpenDrift | ||
|
||
import cmocean | ||
cmap = cmocean.tools.crop_by_percent(cmocean.cm.amp, 20, which='max', N=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Test configuration methods.""" | ||
|
||
import particle_tracking_manager as ptm | ||
import os | ||
import pytest | ||
|
||
def test_drift_models(): | ||
os.system("python cli.py driftmodel=Leeway oceanmodel=None") | ||
os.system("python cli.py driftmodel=OceanDrift oceanmodel=None") | ||
os.system("python cli.py driftmodel=LarvalFish oceanmodel=None") | ||
os.system("python cli.py driftmodel=OpenOil oceanmodel=None") | ||
|
||
def test_order(): | ||
|
||
with pytest.raises(KeyError): | ||
manager = ptm.OpenDrift() | ||
manager.seed() |