Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add python script for ensemble vortex generation #21

Merged
29 commits merged into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b06cc97
add python script for ensemble vortex generation
WPringle Jun 8, 2021
6a1734d
Fix code style issues with oitnb
lint-action Jun 8, 2021
d052e5a
write perturber class
zacharyburnett Jun 9, 2021
8c9f5b1
Fix code style issues with oitnb
lint-action Jun 9, 2021
3df8b0d
store variable information in classes
zacharyburnett Jun 9, 2021
ccbddea
add random test (ignore until stochastic)
zacharyburnett Jun 9, 2021
c9b4b2a
Fix code style issues with oitnb
lint-action Jun 9, 2021
28b0c43
use `pint` for unit conversion and storage (#22)
zacharyburnett Jun 10, 2021
46f0321
Fix code style issues with oitnb
lint-action Jun 10, 2021
6cdbdf1
rename validation time property
zacharyburnett Jun 10, 2021
d1aaf38
re-enable test with deterministic run
zacharyburnett Jun 10, 2021
c111424
add windows to tests
zacharyburnett Jun 10, 2021
0dd6e81
remove environment.yml
zacharyburnett Jun 10, 2021
d1772e0
use CRS and transformer from `pyproj`
zacharyburnett Jun 11, 2021
6e06c7d
update reference files
zacharyburnett Jun 11, 2021
bc1c08e
Removing dependence on adcircpy (#23)
WPringle Jun 11, 2021
45ee669
Fix code style issues with oitnb
lint-action Jun 11, 2021
ca4c716
remove unused imports
zacharyburnett Jun 11, 2021
3c5742b
refactor / fix plotting
zacharyburnett Jun 14, 2021
d5c4240
Fix code style issues with oitnb
lint-action Jun 14, 2021
80c3b85
use inverse geodetic calc to get distance and bearing
zacharyburnett Jun 14, 2021
fc15a29
update dependencies
zacharyburnett Jun 14, 2021
3d92d28
update dependencies
zacharyburnett Jun 14, 2021
20497c0
explicitly add GDAL
zacharyburnett Jun 14, 2021
f5a9f88
remove GDAL
zacharyburnett Jun 14, 2021
c2d8f14
Fix code style issues with oitnb
lint-action Jun 14, 2021
1c8a11a
update reference files
zacharyburnett Jun 14, 2021
59f7472
fix configuration caching
zacharyburnett Jun 14, 2021
e2999ca
Fix code style issues with oitnb
lint-action Jun 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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