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

Creating network from SHP: 'ERROR: GDF object has no attribute 'append' #210

Closed
LiekeMeijer opened this issue Oct 2, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@LiekeMeijer
Copy link
Contributor

AttributeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_10932\38322887.py in ?()
1 handler = Ra2ceHandler(network=network_ini, analysis=None)
----> 2 handler.configure()

C:\python\ra2ce\ra2ce\ra2ce_handler.py in ?(self)
70 def configure(self) -> None:
---> 71 self.input_config.configure()

C:\python\ra2ce\ra2ce\configuration\config_wrapper.py in ?(self)
77 def configure(self) -> None:
78 if self.network_config:
---> 79 self.network_config.configure_network()
80 self.network_config.configure_hazard()
81 if self.analysis_config:
82 self.analysis_config.configure()

C:\python\ra2ce\ra2ce\graph\network_config_wrapper.py in ?(self)
154 def configure_network(self) -> None:
155 network = Network(self.config_data, self.files)
--> 156 self.graphs = network.create()

C:\python\ra2ce\ra2ce\graph\networks.py in ?(self)
215 network_gdf = None
...
5987 ):
5988 return self[name]
-> 5989 return object.getattribute(self, name)

AttributeError: 'GeoDataFrame' object has no attribute 'append'

@LiekeMeijer
Copy link
Contributor Author

This happened when using clean up functionality, I had merge_lines set to true. This increased computation time from 10 seconds to 40 minutes and resulted in an error eventually. I.e.: you can create a network but the clean-up functionality needs to be well-documented and tested...

@Carsopre
Copy link
Collaborator

Carsopre commented Nov 8, 2023

Because we do not have a clear overview on how to reproduce the steps we don't know whether this is a failure because of an outdated jupyter notebook or a bug in the ra2ce code. Therefore this issue can be closed.

@Carsopre Carsopre closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants