Skip to content

Commit 458baa3

Browse files
authored
Merge pull request #209 from Surpris/develop-207
Set the encoding option of the open() functions in the codes
2 parents 26016fe + 2719080 commit 458baa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+55
-5
lines changed

CITATION.cff

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ authors:
1616
- family-names: Gaignard
1717
given-names: Alban
1818
orcid: https://orcid.org/0000-0002-3597-8557
19+
- family-names: Hiraki
20+
given-names: Toshiyuki
21+
orcid: https://orcid.org/0000-0001-6712-6335
1922
- family-names: Hörtenhuber
2023
given-names: Matthias
2124
orcid: https://orcid.org/0000-0002-5599-5565

README.md

Lines changed: 1 addition & 0 deletions

examples/read_test_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
55
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
66
# Copyright 2024 Data Centre, SciLifeLab, SE
7+
# Copyright 2024 National Institute of Informatics (NII), JP
78
#
89
# Licensed under the Apache License, Version 2.0 (the "License");
910
# you may not use this file except in compliance with the License.

rocrate/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
77
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
88
# Copyright 2024 Data Centre, SciLifeLab, SE
9+
# Copyright 2024 National Institute of Informatics (NII), JP
910
#
1011
# Licensed under the Apache License, Version 2.0 (the "License");
1112
# you may not use this file except in compliance with the License.
@@ -50,6 +51,7 @@
5051
Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
5152
Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
5253
Copyright 2024 Data Centre, SciLifeLab, SE
54+
Copyright 2024 National Institute of Informatics (NII), JP
5355
"""
5456
__license__ = ("Apache License, version 2.0 "
5557
"<https://www.apache.org/licenses/LICENSE-2.0>")

rocrate/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
55
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
66
# Copyright 2024 Data Centre, SciLifeLab, SE
7+
# Copyright 2024 National Institute of Informatics (NII), JP
78
#
89
# Licensed under the Apache License, Version 2.0 (the "License");
910
# you may not use this file except in compliance with the License.

rocrate/metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
55
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
66
# Copyright 2024 Data Centre, SciLifeLab, SE
7+
# Copyright 2024 National Institute of Informatics (NII), JP
78
#
89
# Licensed under the Apache License, Version 2.0 (the "License");
910
# you may not use this file except in compliance with the License.
@@ -33,7 +34,7 @@ def read_metadata(metadata_path):
3334
if isinstance(metadata_path, dict):
3435
metadata = metadata_path
3536
else:
36-
with open(metadata_path) as f:
37+
with open(metadata_path, 'r', encoding='utf-8') as f:
3738
metadata = json.load(f)
3839
try:
3940
context = metadata['@context']

rocrate/model/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
55
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
66
# Copyright 2024 Data Centre, SciLifeLab, SE
7+
# Copyright 2024 National Institute of Informatics (NII), JP
78
#
89
# Licensed under the Apache License, Version 2.0 (the "License");
910
# you may not use this file except in compliance with the License.

rocrate/model/computationalworkflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
77
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
88
# Copyright 2024 Data Centre, SciLifeLab, SE
9+
# Copyright 2024 National Institute of Informatics (NII), JP
910
#
1011
# Licensed under the Apache License, Version 2.0 (the "License");
1112
# you may not use this file except in compliance with the License.

rocrate/model/computerlanguage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
55
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
66
# Copyright 2024 Data Centre, SciLifeLab, SE
7+
# Copyright 2024 National Institute of Informatics (NII), JP
78
#
89
# Licensed under the Apache License, Version 2.0 (the "License");
910
# you may not use this file except in compliance with the License.

rocrate/model/contextentity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Copyright 2020-2024 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
77
# Copyright 2022-2024 École Polytechnique Fédérale de Lausanne, CH
88
# Copyright 2024 Data Centre, SciLifeLab, SE
9+
# Copyright 2024 National Institute of Informatics (NII), JP
910
#
1011
# Licensed under the Apache License, Version 2.0 (the "License");
1112
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)