-
Notifications
You must be signed in to change notification settings - Fork 14
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
main.py execution fails for me #9
Comments
I also get this error. Is there anyone knowing how to fix it? |
You need to generate a file, Demand.py, where each line is a request with OD coordinates |
Could you share it, i will refer and generate a new file |
This was in one of the earlier versions of the code: """ D_MIT = 60 |
I picked one of the item ( -71.102711, 42.364923, -71.104143, 42.379222, 0.1, 1.0) in your set, what is these values "0.1" and "1.0" denotes? |
I don't know/remember. If you look at the code for class "Model", you'll see it's using D to get the total demand, and M to be the matrix of OD locations. |
I can able to run the python code. But i am getting following error I am using "massachusetts-latest.osm.pbf" file instead of "boston_massachusetts.osm.pbf" How can i create map.png for this "massachusetts-latest.osm.pbf" file |
map.png is just a map picture (e.g. a screenshot of google map) to generate the simulation anime, in amod-abm, it is a screenshot from OpenStreetMap with the same latitude and longitude boundaries as the .osm.pbf file. I think you can download an old version (which should be a completed version) of amod-abm from https://github.com/nbailey/amod-abm to run this code. |
While running main.py, i am getting following issues, Could you help me run it?
my Python version is 3.7.0
Found that there is no demand.py file in lib folder, could you share it?
$ python main.py
Traceback (most recent call last):
File "main.py", line 3, in
from lib.Utils import *
File "/Users/sureshs/Documents/source/amod-abm/lib/Utils.py", line 13, in
from lib.OsrmEngine import *
File "/Users/sureshs/Documents/source/amod-abm/lib/OsrmEngine.py", line 13, in
from lib.Constants import *
File "/Users/sureshs/Documents/source/amod-abm/lib/Constants.py", line 5, in
from lib.Demand import *
ModuleNotFoundError: No module named 'lib.Demand'
The text was updated successfully, but these errors were encountered: