removes debug line, writes json to file instead (path: output/)

This commit is contained in:
2026-02-13 11:49:59 +01:00
parent f60b58f2f2
commit 0a879cbfe9
2 changed files with 5 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ def make_nexus_schema_dictionary(substrate_object, layers):
"duration": layer.post_annealing_duration,
},
}
return json.dumps(pld_fabrication, indent=2)
return pld_fabrication
if __name__=="__main__":
# TO-DO: place the API base URL somewhere else.
@@ -209,5 +209,7 @@ if __name__=="__main__":
sample = Entrypoint(data)
substrate_object = chain_entrypoint_to_batch(sample) # Substrate-class object
layers = chain_entrypoint_to_layers(sample) # list of Layer-class objects
print(make_nexus_schema_dictionary(substrate_object, layers)) # debug
result = make_nexus_schema_dictionary(substrate_object, layers)
# print(make_nexus_schema_dictionary(substrate_object, layers)) # debug
with open (f"output/sample-{elabid}.json", "w") as f:
json.dump(result, f, indent=3)