tomalrussell / snkit

spatial networks toolkit (python)
MIT License
31 stars 10 forks source link

Fix `test_snap_nodes` #53

Closed thomas-fred closed 2 years ago

thomas-fred commented 2 years ago

test_snap_nodes was failing here:

    snapped = snkit.network.snap_nodes(misaligned)
    assert_frame_equal(snapped.nodes, connected.nodes)

... as snapped.nodes and connected.nodes were not the same dtype (former DataFrame, latter GeoDataFrame). snap_nodes now changed to return nodes as GeoDataFrame.

Could alternatively compare the data in the test dataframes and not their types, I don't mind.