Skip to content

Commit 3d0ab2f

Browse files
authored
Merge pull request #240 from knaaptime/floatfix
floatfix
2 parents 41250e6 + c1f2157 commit 3d0ab2f

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

segregation/dynamics/segregation_profile.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ def compute_multiscalar_profile(
9494
warnings.simplefilter("ignore")
9595
if network:
9696
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-
)
97+
if check_crs and gdf.crs.equals(CRS(4326)):
98+
warn(
99+
"GeoDataFrame is in CRS {gdf.crs}. Ensure your network is also" +
100+
" stored in this system",
101+
stacklevel=2,
102+
)
102103
if precompute:
103104
maxdist = max(distances)
104105
network.precompute(maxdist)

0 commit comments

Comments
 (0)