Skip to content

Commit

Permalink
fix: close descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo-Pedicillo committed Oct 9, 2024
1 parent b2e54f5 commit 14acf17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qibocal/auto/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def dump(self, path: Path):
for param, value in self.parameters.items():
if type(value) is Circuit:
circuit_path = path / CIRCUIT
circuit_file = open(circuit_path, "w")
json.dump(value.raw, circuit_file)
circuit_path.write_text(json.dumps(value.raw))
self.parameters[param] = str(circuit_path)
(path / SINGLE_ACTION).write_text(yaml.safe_dump(asdict(self)))

Expand Down

0 comments on commit 14acf17

Please sign in to comment.