@@ -180,6 +180,14 @@ def remove_false_nodes(gdf):
180
180
momepy.extend_lines
181
181
momepy.close_gaps
182
182
"""
183
+ warnings .warn (
184
+ "`remove_false_nodes` is deprecated and will be removed in momepy 1.1. The "
185
+ "function has been improved and moved to the `neatnet` package and can be used "
186
+ "as `neatnet.remove_interstitial_nodes`. See https://uscuni.org/neatnet for "
187
+ "details." ,
188
+ FutureWarning ,
189
+ stacklevel = 2 ,
190
+ )
183
191
if isinstance (gdf , gpd .GeoDataFrame | gpd .GeoSeries ):
184
192
# explode to avoid MultiLineStrings
185
193
# reset index due to the bug in GeoPandas explode
@@ -426,6 +434,13 @@ def close_gaps(gdf, tolerance):
426
434
momepy.remove_false_nodes
427
435
428
436
"""
437
+ warnings .warn (
438
+ "`close_gaps` is deprecated and will be removed in momepy 1.1. The "
439
+ "function has been moved to the `neatnet` package and can be used "
440
+ "as `neatnet.close_gaps`. See https://uscuni.org/neatnet for details." ,
441
+ FutureWarning ,
442
+ stacklevel = 2 ,
443
+ )
429
444
geom = gdf .geometry .array
430
445
coords = shapely .get_coordinates (geom )
431
446
indices = shapely .get_num_coordinates (geom )
@@ -496,6 +511,13 @@ def extend_lines(gdf, tolerance, target=None, barrier=None, extension=0):
496
511
momepy.remove_false_nodes
497
512
498
513
"""
514
+ warnings .warn (
515
+ "`close_gaps` is deprecated and will be removed in momepy 1.1. The "
516
+ "function has been moved to the `neatnet` package and can be used "
517
+ "as `neatnet.close_gaps`. See https://uscuni.org/neatnet for details." ,
518
+ FutureWarning ,
519
+ stacklevel = 2 ,
520
+ )
499
521
# explode to avoid MultiLineStrings
500
522
# reset index due to the bug in GeoPandas explode
501
523
df = gdf .reset_index (drop = True ).explode (ignore_index = True )
@@ -1587,6 +1609,13 @@ def __init__(
1587
1609
height_maxs = 0.008 ,
1588
1610
prominence = 0.00075 ,
1589
1611
):
1612
+ warnings .warn (
1613
+ "`FaceArtifacts` is deprecated and will be removed in momepy 1.1. The "
1614
+ "class has been moved to the `neatnet` package and can be used "
1615
+ "as `neatnet.FaceArtifacts`. See https://uscuni.org/neatnet for details." ,
1616
+ FutureWarning ,
1617
+ stacklevel = 2 ,
1618
+ )
1590
1619
try :
1591
1620
from esda import shape
1592
1621
except (ImportError , ModuleNotFoundError ) as err :
0 commit comments