Skip to content

Commit d6484ef

Browse files
committed
Change utf8 encoding
1 parent df5d4da commit d6484ef

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.tools/python_tools/create_docker_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55
def add_docker_extra(filename_path):
6-
f = open(filename_path, "a")
6+
f = open(filename_path, "a", encoding='utf8')
77

88
f.write('\n')
99

@@ -14,7 +14,7 @@ def create_docker_arguments(filename_path, ubuntu_version, cuda_version, cudnn_v
1414
sections_to_remove, notebook_name, gpu_flag, python_version
1515
):
1616

17-
f = open(filename_path, "w")
17+
f = open(filename_path, "w", encoding='utf8')
1818
f.write('The arguments that have been used to build the Docker image are:\n')
1919
f.write(f'\tUBUNTU_VERSION="{ubuntu_version}"\n')
2020
f.write(f'\tCUDA_VERSION="{cuda_version}"\n')

.tools/python_tools/list_of_notebooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
urlretrieve(zcdl4m_url, 'Home.md')
1212

1313
# Load all the text data from ZCDL4M wiki into memory
14-
home = open('Home.md', 'r')
14+
home = open('Home.md', 'r', encoding='utf8')
1515
fileString = home.readlines()
1616
print(f"Number of lines to process {len(fileString)}. ")
1717

@@ -29,7 +29,7 @@
2929
notebooks_task = fileString[l:k] # save the entire table
3030
del notebooks_task[1] # Remove the table delimiter from markdown
3131
# Write a text file that will be loaded as a pandas dataframe
32-
with open(save_dir, 'w') as f:
32+
with open(save_dir, 'w', encoding='utf8') as f:
3333
for line in notebooks_task:
3434
f.write(line)
3535
# load the notebooks information as a pandas dataframe
@@ -80,7 +80,7 @@
8080
for ref, ref_url in Dict.items():
8181
notebooks = notebooks.replace(f"[{ref}]", f"({ref_url})")
8282
# Store the text as a markdown
83-
with open(save_dir, 'w') as f:
83+
with open(save_dir, 'w', encoding='utf8') as f:
8484
f.write(notebooks)
8585
print(f"Notebook markdown stored at {save_dir}")
8686

notebooks/Bespoke_notebooks/bioimageio-pytorch/configuration.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
authors:
2-
- "Estibaliz G\xF3mez-de-Mariscal"
2+
- "Estibaliz Gómez-de-Mariscal"
33
- Constantin Pape
44
- Mariana Ferreira
55
- BioImage Model Zoo team
@@ -9,9 +9,9 @@ badges:
99
url: https://colab.research.google.com/github/HenriquesLab/DL4MicEverywhere/blob/main/notebooks/Bespoke_notebooks/bioimageio-pytorch/load_bioimageio_pytorch.ipynb
1010
cite:
1111
- doi: https://doi.org/10.1101/2022.06.07.495102
12-
text: "Wei Ouyang, Fynn Beuttenmueller, Estibaliz G\xF3mez-de-Mariscal, Constantin Pape, et al., BioImage Model Zoo: A Community-Driven Resource for Accessible Deep Learning in BioImage Analysis, bioRxiv 2022"
12+
text: "Wei Ouyang, Fynn Beuttenmueller, Estibaliz Gómez-de-Mariscal, Constantin Pape, et al., BioImage Model Zoo: A Community-Driven Resource for Accessible Deep Learning in BioImage Analysis, bioRxiv 2022"
1313
- doi: https://doi.org/10.1101/2023.11.19.567606
14-
text: "Iv\xE1n Hidalgo-Cenalmor, Joanna W. Pylv\xE4n\xE4inen, Mariana G Ferreira, et al., DL4MicEverywhere: Deep learning for microscopy made flexible, shareable, and reproducible, bioRxiv 2023"
14+
text: "Iván Hidalgo-Cenalmor, Joanna W. Pylvänäinen, Mariana G Ferreira, et al., DL4MicEverywhere: Deep learning for microscopy made flexible, shareable, and reproducible, bioRxiv 2023"
1515
config:
1616
dl4miceverywhere:
1717
cuda_version: 11.2.2

0 commit comments

Comments
 (0)