Skip to content

Nrel#166 automatically download road network if doesnt exist#175

Merged
nreinicke merged 7 commits intoNatLabRockies:mainfrom
clintonsteiner:NREL#166_automatically_download_road_network_if_doesnt_exist
Apr 25, 2023
Merged

Nrel#166 automatically download road network if doesnt exist#175
nreinicke merged 7 commits intoNatLabRockies:mainfrom
clintonsteiner:NREL#166_automatically_download_road_network_if_doesnt_exist

Conversation

@clintonsteiner
Copy link
Copy Markdown
Contributor

No description provided.

@clintonsteiner clintonsteiner force-pushed the NREL#166_automatically_download_road_network_if_doesnt_exist branch from eaa1a63 to 259a4f7 Compare April 24, 2023 22:14
Copy link
Copy Markdown
Collaborator

@robfitzgerald robfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solid start and one step closer to a really simple way for people to use HIVE.

i have some requests for fixes and one question as well.

🐝

polygon=polygon_union,
)
else:
raise IOError("Must supply a road network file when using the osm_network")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the error message for omission of either road_network or geofence_file. the error should reflect this, perhaps via raise IOError("Must supply either a road network or geofence file when using the osm_network")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread tests/test_initialize_simulation.py
) from e

ox.settings.all_oneway = True
ox.settings.use_cache = False
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use cache?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecated and causes errors on our run

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could set the cache folder instead to cache the road network results in the scenario folder using the cache_folder setting from here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked with Nick and we got this updated, unsure if I love the implementation though. Open to suggestions

@clintonsteiner clintonsteiner force-pushed the NREL#166_automatically_download_road_network_if_doesnt_exist branch from 259a4f7 to 6ff08f4 Compare April 24, 2023 22:32
= and others added 3 commits April 24, 2023 16:45
Copy link
Copy Markdown
Collaborator

@robfitzgerald robfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for adding this!

@nreinicke nreinicke merged commit fb89740 into NatLabRockies:main Apr 25, 2023
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

Successfully merging this pull request may close these issues.

3 participants