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 deprecation warning for libpysal geometries #649

Merged
merged 3 commits into from
Sep 19, 2021
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
Next Next commit
depwarning for libpysal geometries
  • Loading branch information
jGaboardi committed Sep 14, 2021
commit 2f8533e0530186bc8f3a1ed37c12c627fded5210
5 changes: 5 additions & 0 deletions spaghetti/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
SAME_SEGMENT = (-0.1, -0.1)


dep_msg = "The next major release of pysal/spaghetti (2.0.0) will drop support for all ``libpysal.cg`` geometries."
warnings.simplefilter("always", DeprecationWarning)
warnings.warn(f"{dep_msg}", DeprecationWarning)


class Network:
"""Spatially-constrained network representation and analytical
functionality. Naming conventions are as follows, (1) arcs and
Expand Down