#!/usr/bin/python3
# ./fix_json.py data-small/*/scenario_*.json
import json
import sys
for path in sys.argv[1:]:
with open(path) as f:
data = json.load(f)
for person in data['people']:
assert(len(person['trips']) == 1)
person['trips'][0]['departure'] = 10000 * person['trips'][0]['departure']
with open(path, 'w') as f:
f.write(json.dumps(data, indent=2))
f.close()
and then reverting LCID, because that one file already had the changes from 6044e943e000971c2bea2cb3ae215c1f5adb92de
… a-b-street/abstr#29.
Using a python script again:
and then reverting LCID, because that one file already had the changes from 6044e943e000971c2bea2cb3ae215c1f5adb92de