Skip to content

Commit 4cc8e5a

Browse files
committed
fix: add function _parse_bitdepth to utils.loading.__init__.py
update docs for export_metadata
1 parent 4958aa8 commit 4cc8e5a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/viqa/utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"_rgb_to_yuv",
3737
"_get_binary",
3838
"_resize_image",
39+
"_parse_bitdepth",
3940
"_check_border_too_close",
4041
"_check_chromatic",
4142
"_extract_blocks",
@@ -69,6 +70,7 @@
6970
_check_imgs,
7071
_load_binary,
7172
_load_data_from_disk,
73+
_parse_bitdepth,
7274
_resize_image,
7375
crop_image,
7476
load_data,

src/viqa/utils/export.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,14 @@ def export_metadata(metrics, metrics_parameters, file_path, file_name="metadata.
119119
120120
Notes
121121
-----
122+
The timestamp, added to the txt file, is the current time when the report is
123+
generated.
124+
122125
.. attention::
123126
124127
The txt file will be overwritten if it already exists.
125128
"""
129+
# TODO: Change this to use the class attribute parameter
126130
if os.path.splitext(file_name)[1] != ".txt":
127131
raise ValueError(f"The file name {file_name} must have the extension '.txt'.")
128132
path = os.path.join(file_path, file_name)

0 commit comments

Comments
 (0)