https://github.com/CoolProp/CoolProp
Raw File
Tip revision: bafdea1f39ee873a6bb9833e3a21fe41f90b85e8 authored by Jorrit Wronski on 08 August 2023, 14:27:41 UTC
Update the changelog for v6.5.0
Tip revision: bafdea1
clean_up_json.py
import json, sys, glob, os
here = os.path.dirname(os.path.abspath(__file__))
sys.path.append(here+'/..')
from package_json import json_options

for fluid in glob.glob(here+'/fluids/*.json'):

    print(fluid)
    j = json.load(open(fluid, 'r'))

    fp = open(fluid, 'w')
    fp.write(json.dumps(j, **json_options))
    fp.close()
back to top