<reponame>JoshMend/prebotc-graph-model<gh_stars>0
#!/usr/bin/env python
# <NAME>

import re
import pickle
import json
import glob

for f in glob.glob('./*.pkl'):
    fh = open(f, 'r')
    params = pickle.load(fh)
    fh.close()
    fnew = re.sub(r'(pkl$)', 'json', f)
    fh = open(fnew, 'w')
    json.dump(params, fh)
    fh.close()

#!/usr/bin/env python
# <NAME>

import re
import pickle
import json
import glob

for f in glob.glob('./*.pkl'):
    fh = open(f, 'r')
    params = pickle.load(fh)
    fh.close()
    fnew = re.sub(r'(pkl$)', 'json', f)
    fh = open(fnew, 'w')
    json.dump(params, fh)
    fh.close()
#!/usr/bin/env python # <NAME>