removes debug line, writes json to file instead (path: output/)
This commit is contained in:
0
output/placeholder
Normal file
0
output/placeholder
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user