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

standardize input FUA indices & columns #150

Merged
merged 5 commits into from
Dec 10, 2024
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
no need to test _status twice
jGaboardi committed Dec 10, 2024
commit 67566ed9c8c9139f6860edaceecd2c6db311f88d
12 changes: 6 additions & 6 deletions neatnet/tests/test_simplify.py
Original file line number Diff line number Diff line change
@@ -65,10 +65,10 @@ def test_simplify_network_small(scenario, tol, known_length):
assert observed.index.dtype == numpy.dtype("int64")

assert observed.shape == known.shape
assert_series_equal(known._status, observed._status)
assert_series_equal(known["_status"], observed["_status"])
assert_frame_equal(
known.drop(columns=["geometry"]),
observed.drop(columns=["geometry"]),
known.drop(columns=["_status", "geometry"]),
observed.drop(columns=["_status", "geometry"]),
)

pytest.geom_test(known, observed, tolerance=tol, aoi=f"{ac}_{scenario}")
@@ -102,9 +102,9 @@ def test_simplify_network_full_fua(aoi, tol, known_length):
assert observed.index.dtype == numpy.dtype("int64")

if pytest.ubuntu and pytest.env_type != "oldest":
assert_series_equal(known._status, observed._status)
assert_series_equal(known["_status"], observed["_status"])
assert_frame_equal(
known.drop(columns=["geometry"]),
observed.drop(columns=["geometry"]),
known.drop(columns=["_status", "geometry"]),
observed.drop(columns=["_status", "geometry"]),
)
pytest.geom_test(known, observed, tolerance=tol, aoi=aoi)