Files
CoolProp/dev/clean_up_json.py
Matthis Thorade 19a4875879 More autopep8 (#1621)
* autopep8 rule-groups E101,W1,W2,W3

* autopep8 with rule group E3 (blank lines)

autopep8 --in-place --recursive --max-line-length=200 --exclude="externals" --select="E101,E3,W1,W2,W3" .

* tabs and space W191

* autopep8 aggressive
2017-12-13 14:43:41 +01:00

13 lines
261 B
Python

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()