You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into this issue with the DN3 network in Otago. Presumably it is an issue in the network. Is it a network connection/routing issue? Shapefile topology issue? Something else?
File "D:\modelling\nzmf6\nzmf6\utils.py", line 315, in add_sfr
n = swn.SurfaceWaterNetwork.from_lines(lines.geometry)
File "d:\modelling\surface-water-network\swn\core.py", line 336, in from_lines
recurse_upstream(segnum, segnum, 0, 0.0)
File "d:\modelling\surface-water-network\swn\core.py", line 333, in recurse_upstream
recurse_upstream(from_segnum, cat_group, num, dist)
File "d:\modelling\surface-water-network\swn\core.py", line 333, in recurse_upstream
recurse_upstream(from_segnum, cat_group, num, dist)
File "d:\modelling\surface-water-network\swn\core.py", line 333, in recurse_upstream
recurse_upstream(from_segnum, cat_group, num, dist)
[Previous line repeated 976 more times]
File "d:\modelling\surface-water-network\swn\core.py", line 329, in recurse_upstream
dist += obj.segments.geometry[segnum].length
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\geopandas\geoseries.py", line 558, in getitem
return self._wrapped_pandas_method("getitem", key)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\geopandas\geoseries.py", line 551, in _wrapped_pandas_method
val = getattr(super(GeoSeries, self), mtd)(*args, **kwargs)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\pandas\core\series.py", line 942, in getitem
return self._get_value(key)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\pandas\core\series.py", line 1052, in _get_value
return self.index._get_values_for_loc(self, loc, label)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\pandas\core\indexes\base.py", line 5184, in _get_values_for_loc
return series._values[loc]
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\geopandas\array.py", line 376, in getitem
if isinstance(idx, numbers.Integral):
File "C:\ProgramData\Anaconda3\envs\py37\lib\abc.py", line 139, in instancecheck
return _abc_instancecheck(cls, instance)
File "C:\ProgramData\Anaconda3\envs\py37\lib\abc.py", line 143, in subclasscheck
return _abc_subclasscheck(cls, subclass)
RecursionError: maximum recursion depth exceeded in comparison
The text was updated successfully, but these errors were encountered:
I am running into this issue with the DN3 network in Otago. Presumably it is an issue in the network. Is it a network connection/routing issue? Shapefile topology issue? Something else?
File "D:\modelling\nzmf6\nzmf6\utils.py", line 315, in add_sfr
n = swn.SurfaceWaterNetwork.from_lines(lines.geometry)
File "d:\modelling\surface-water-network\swn\core.py", line 336, in from_lines
recurse_upstream(segnum, segnum, 0, 0.0)
File "d:\modelling\surface-water-network\swn\core.py", line 333, in recurse_upstream
recurse_upstream(from_segnum, cat_group, num, dist)
File "d:\modelling\surface-water-network\swn\core.py", line 333, in recurse_upstream
recurse_upstream(from_segnum, cat_group, num, dist)
File "d:\modelling\surface-water-network\swn\core.py", line 333, in recurse_upstream
recurse_upstream(from_segnum, cat_group, num, dist)
[Previous line repeated 976 more times]
File "d:\modelling\surface-water-network\swn\core.py", line 329, in recurse_upstream
dist += obj.segments.geometry[segnum].length
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\geopandas\geoseries.py", line 558, in getitem
return self._wrapped_pandas_method("getitem", key)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\geopandas\geoseries.py", line 551, in _wrapped_pandas_method
val = getattr(super(GeoSeries, self), mtd)(*args, **kwargs)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\pandas\core\series.py", line 942, in getitem
return self._get_value(key)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\pandas\core\series.py", line 1052, in _get_value
return self.index._get_values_for_loc(self, loc, label)
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\pandas\core\indexes\base.py", line 5184, in _get_values_for_loc
return series._values[loc]
File "C:\ProgramData\Anaconda3\envs\py37\lib\site-packages\geopandas\array.py", line 376, in getitem
if isinstance(idx, numbers.Integral):
File "C:\ProgramData\Anaconda3\envs\py37\lib\abc.py", line 139, in instancecheck
return _abc_instancecheck(cls, instance)
File "C:\ProgramData\Anaconda3\envs\py37\lib\abc.py", line 143, in subclasscheck
return _abc_subclasscheck(cls, subclass)
RecursionError: maximum recursion depth exceeded in comparison
The text was updated successfully, but these errors were encountered: