Skip to content

Commit

Permalink
add python script for ensemble vortex generation (#21)
Browse files Browse the repository at this point in the history
* add python script for ensemble vortex generation

* Fix code style issues with oitnb

* write perturber class

* Fix code style issues with oitnb

* store variable information in classes

* add random test (ignore until stochastic)

* Fix code style issues with oitnb

* use `pint` for unit conversion and storage (#22)

* use `pint` for unit conversion and storage

* move perturbations into class implementations

* Fix code style issues with oitnb

* rename validation time property

* re-enable test with deterministic run

* add windows to tests

* remove environment.yml

* use CRS and transformer from `pyproj`

* update reference files

* Removing dependence on adcircpy (#23)

* Removing dependence on adcircpy
- [for now] copying over besttrackforcing from adcircpy into tropicalcyclone.atcf module
- removed NWS, BLAdh, geo, and time interval properties as they are related to adcirc inputs
- add test/output folders to .gitignore

* adding some help info for atcf tracks and adding __init__.py to subdirectories to find them

* Fix code style issues with oitnb

* remove unused imports

* refactor / fix plotting

* Fix code style issues with oitnb

* use inverse geodetic calc to get distance and bearing

* update dependencies

* update dependencies

* explicitly add GDAL

* remove GDAL

* Fix code style issues with oitnb

* update reference files

* fix configuration caching

* Fix code style issues with oitnb

Co-authored-by: William Pringle <[email protected]>
Co-authored-by: Lint Action <[email protected]>
  • Loading branch information
3 people committed Jun 14, 2021
1 parent 44a5a7a commit 06c30ea
Show file tree
Hide file tree
Showing 39 changed files with 2,915 additions and 170 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, windows-latest ]
python-version: [ 3.8, 3.9 ]
steps:
- name: Checkout repository
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run tests with coverage
run: pytest --cov=ensembleperturbation --numprocesses auto --ignore=tests/test_parser.py
run: pytest --cov=ensembleperturbation --numprocesses auto
- name: Upload coverage to Codecov
if: matrix.python-version == 3.9
uses: codecov/codecov-action@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,4 @@ cython_debug/

.idea/
/examples/data/*
/tests/data/output
4 changes: 2 additions & 2 deletions ensembleperturbation/parsing/adcirc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from pandas import DataFrame
from shapely.geometry import Point

from ..utilities import get_logger
from .utilities import decode_time
from ensembleperturbation.parsing.utilities import decode_time
from ensembleperturbation.utilities import get_logger

LOGGER = get_logger('parsing.adcirc')

Expand Down
8 changes: 6 additions & 2 deletions ensembleperturbation/parsing/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
from pyproj import CRS, Geod
import shapely

from ..utilities import get_logger
from .adcirc import fort61_stations_zeta, fort62_stations_uv, parse_adcirc_outputs
from ensembleperturbation.parsing.adcirc import (
fort61_stations_zeta,
fort62_stations_uv,
parse_adcirc_outputs,
)
from ensembleperturbation.utilities import get_logger

LOGGER = get_logger('parsing.comparison')

Expand Down
Loading

0 comments on commit 06c30ea

Please sign in to comment.