Skip to content
Snippets Groups Projects
Commit 92fb44cb authored by Alán Muñoz's avatar Alán Muñoz
Browse files

change(Metadata): print->log

parent a9a6291d
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ If there are no metadata files, ALIBY requires indicating indices for tiler, seg
"""
import glob
import logging
import os
import typing as t
from datetime import datetime
......@@ -97,7 +98,9 @@ def find_file(root_dir, regex):
)
file = [sorted(file)[0]]
if len(file) == 0:
print("Warning:Metadata: No valid swainlab .log found.")
logging.getLogger("aliby").log(
logging.WARNING, "Metadata: No valid swainlab .log found."
)
else:
return file[0]
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment