Skip to content

Commit

Permalink
Merge pull request #649 from jGaboardi/depre_note
Browse files Browse the repository at this point in the history
add deprecation warning for libpysal geometries
  • Loading branch information
jGaboardi authored Sep 19, 2021
2 parents 7838510 + 3bc0e4e commit ee17b8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spaghetti/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@
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. This change "
"is a first step in refactoring ``spaghetti`` that is "
"expected to result in dramatically reduced runtimes for "
"network instantiation and operations. Users currently "
"requiring network and point pattern input as ``libpysal.cg`` "
"geometries should prepare for this simply by converting "
"to ``shapely`` geometries."
)
warnings.warn(f"{dep_msg}", FutureWarning)


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

0 comments on commit ee17b8e

Please sign in to comment.