-
Notifications
You must be signed in to change notification settings - Fork 27
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
tutorial.ipynb will not run #41
Comments
Additionally I tried to get around this using my own data from grid2demand (attached here) and I got a different error when I tried to run section 3.1 basic functionalities. Files if it is helpful: |
The first issue is related to the setup of synthesized zone id's in _synthesize_grid(), where zone id shall be string. It has been fixed under commit 403be24. It will be part of v0.9.7 in the next release. |
The second issue comes from the data itself. This is data type inconsistency between node.csv and link.csv in terms of node id. Specifically, node id's are all decimal numbers in node.csv but integers in link.csv. For example, the id's of the two nodes are 0.0 and 1.0. Later on, when you load link.csv and hit the first link (from_node_id: 0 and to_node_id: 1), Path4GMNS will throw an exception to indicate this link is invalid as those nodes are not present in node.csv. This issue can be avoided if you use any version prior to v0.9.5 (e.g., install v0.9.4 through the following command), where node id is required to be integer. v0.9.5 drops this requirement by allowing any arbitrary value. See here for details. $ pip install path4gmns==0.9.4 An alternative way is to manually covert node id to integer in node.csv. The following is the screenshot of a smooth run after the conversion. This thread will be closed as the underlying data inconsistency comes from an application upstream to Path4GMNS, which could be either osm2gmns or grid2demand. If you have any follow-up questions, you can reopen it. Thank you again for reporting this issue! |
Hi so is this accessible now? Or do I have to wait for some time? After your restponse I tried to force the install of the latest version but it doesn't seem to be able to connect to 0.9.7. |
v0.9.7 is not released yet. You would have to wait until it is published on PyPI or build the package on your own using the latest code from the dev branch. Please see 2. Build and Install the Python Package for instructions. |
I am using the current tutorial.ipynb however when I get to step 3.2 Synthesize Zones and OD Demand Matrix, I get an error back. I have not changed any code or the datafiles it is using--I am just trying to run the original notebook to learn more about the code in general. Thanks for your help!
The text was updated successfully, but these errors were encountered: