Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: explicit utf-8 encoding in text report #90

Merged
merged 4 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/torch_mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
certifi==2023.5.7
certifi==2023.7.22
charset-normalizer==3.1.0
cmake==3.26.4
filelock==3.12.2
Expand All @@ -23,7 +23,7 @@ nvidia-nccl-cu11==2.14.3
nvidia-nvtx-cu11==11.7.91
pandas==2.0.3
perun==0.4.0
Pillow==10.0.0
Pillow==10.0.1
psutil==5.9.5
py-cpuinfo==5.0.0
pynvml==11.5.0
Expand All @@ -37,4 +37,4 @@ torchvision==0.15.2
triton==2.0.0
typing_extensions==4.7.1
tzdata==2023.3
urllib3==2.0.3
urllib3==2.0.7
2 changes: 1 addition & 1 deletion perun/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def exportTo(
log.info(f"Overwriting existing file {output_path}")

reportStr = textReport(dataNode, mr_id) # type: ignore
with open(output_path, fileType) as file:
with open(output_path, fileType, encoding="utf-8") as file:
file.write(reportStr)


Expand Down