Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recurse_upstream issue #66

Open
wkitlasten opened this issue Oct 17, 2022 · 0 comments
Open

recurse_upstream issue #66

wkitlasten opened this issue Oct 17, 2022 · 0 comments

Comments

@wkitlasten
Copy link
Contributor

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

@wkitlasten wkitlasten changed the title recu recurse_upstream issue Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant