Skip to content

Commit

Permalink
remove tests against relative banks
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Apr 12, 2024
1 parent 7a23df9 commit 91f33fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest and generate coverage reports
run: |
Expand Down
31 changes: 0 additions & 31 deletions centerline_width/pytests/test_verifyWidth.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,6 @@ def test_riverWidthFromCenterline_transectSlopeAverage_RelativeCenterline():
})


def test_riverWidthFromCenterline_transectSlopeAverage_RelativeBanks():
river_width_dict = test_river.riverWidthFromCenterline(
transect_slope="Average",
transect_span_distance=span_distance,
coordinate_reference="Banks",
apply_smoothing=False)
# Verify output
assert river_width_dict == pytest.approx({
((-4.267374383747516, 48.283954817156506), (-4.272059498223084, 48.28053518517227)):
0.515263253111841,
((-4.262940530490867, 48.28035744890995), (-4.263843392504115, 48.284577046528305)):
0.47396221154877105
})


def test_riverWidthFromCenterline_transectSlopeDirect_RelativeCenterline():
river_width_dict = test_river.riverWidthFromCenterline(
transect_slope="Direct",
Expand All @@ -108,19 +93,3 @@ def test_riverWidthFromCenterline_transectSlopeDirect_RelativeCenterline():
(-4.263272551474902, 48.281909175456114):
0.47396221154877105
})


def test_riverWidthFromCenterline_transectSlopeDirect_RelativeBanks():
river_width_dict = test_river.riverWidthFromCenterline(
transect_slope="Direct",
transect_span_distance=span_distance,
coordinate_reference="Banks",
apply_smoothing=False)
# Verify output
print(river_width_dict)
assert river_width_dict == pytest.approx({
((-4.267374383747516, 48.283954817156506), (-4.272059498223084, 48.28053518517227)):
0.515263253111841,
((-4.262940530490867, 48.28035744890995), (-4.263843392504115, 48.284577046528305)):
0.47396221154877105
})

0 comments on commit 91f33fe

Please sign in to comment.