Skip to content

Commit

Permalink
Merge 8e448cf into 781d6fd
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlct committed Jul 9, 2019
2 parents 781d6fd + 8e448cf commit b55bda2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/core/kernel/scenario/aimsun.py
Expand Up @@ -148,10 +148,12 @@ def generate_network(self, scenario):
# all the data can take several seconds for large scenarios
while not os.path.exists(check_path):
time.sleep(0.1)
os.remove(check_path)

# scenario_data.json has been written, load its content
with open(scenar_path) as f:
content = json.load(f)
os.remove(scenar_path)

self._edges = content['sections']
self._edge_list = self._edges.keys()
Expand Down

0 comments on commit b55bda2

Please sign in to comment.