https://github.com/CoolProp/CoolProp
Tip revision: 7864c2614ce5a0ef972386ee7f39859f0d3f8038 authored by Ian Bell on 25 October 2016, 02:51:16 UTC
One more try at #1288
One more try at #1288
Tip revision: 7864c26
clean_up_json.py
import json, sys, glob
sys.path.append('..')
from package_json import json_options
for fluid in glob.glob('fluids/*.json'):
print fluid
j = json.load(open(fluid,'r'))
fp = open(fluid,'w')
fp.write(json.dumps(j,**json_options))
fp.close()