2 parents 41250e6 + c1f2157 commit 3d0ab2fCopy full SHA for 3d0ab2f
1 file changed
segregation/dynamics/segregation_profile.py
@@ -94,11 +94,12 @@ def compute_multiscalar_profile(
94
warnings.simplefilter("ignore")
95
if network:
96
distances = np.array(distances).astype(float)
97
- if check_crs:
98
- if not gdf.crs.equals(CRS(4326)):
99
- warn(
100
- "GeoDataFrame is in CRS {gdf.crs}. Ensure your network is also stored in this system"
101
- )
+ if check_crs and gdf.crs.equals(CRS(4326)):
+ warn(
+ "GeoDataFrame is in CRS {gdf.crs}. Ensure your network is also" +
+ " stored in this system",
+ stacklevel=2,
102
+ )
103
if precompute:
104
maxdist = max(distances)
105
network.precompute(maxdist)
0 commit comments