Skip to content

Commit

Permalink
Merge branch 'main' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jun 20, 2024
2 parents 4c0c74b + 7432115 commit 5c54f66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/disembed-figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ def main(paths: list[Path]) -> None:
f"(attachment:{name})", f"({name})"
)
for _, encoded in data.items():
with open(f"{name}", "wb") as f:
f.write(base64.b64decode(encoded))
Path(name).write_bytes(base64.b64decode(encoded))

if write:
nbformat.write(notebook, path)
Expand Down

0 comments on commit 5c54f66

Please sign in to comment.