script cleanup

This commit is contained in:
NT
2021-06-30 19:35:47 +02:00
parent 70becaf24e
commit dec213d4b0
2 changed files with 3 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
import json
# for spell checking single files
fnOut="temp_reduced.txt"
#fn="t.json"
fn="temp.txt"
with open(fn) as file:
d = json.load(file)
@@ -34,8 +34,6 @@ for i in range(len(d[t])):
if( 'image/png' in d[t][i]["outputs"][j]["data"].keys() ):
d[t][i]["outputs"][j]["data"]['image/png'] = ""
#print(d["cells"])
with open(fnOut,'w') as fileOut:
json.dump(d,fileOut, indent=1, sort_keys=True)