changed logging level and format for file names

This commit is contained in:
2025-10-22 14:59:16 +02:00
parent 77641412ab
commit 5c8b9a8cd6

View File

@@ -41,7 +41,7 @@ class AmorHeader:
def __init__(self, fileName:Union[str, h5py.File, BinaryIO]):
if type(fileName) is str:
logging.debug(f' opening file {fileName}')
logging.warning(f' {fileName.split('/')[-1]}')
self.hdf = h5py.File(fileName, 'r', swmr=True)
elif type(fileName) is h5py.File:
self.hdf = fileName
@@ -223,7 +223,8 @@ class AmorEventData(AmorHeader):
def __init__(self, fileName:Union[str, h5py.File, BinaryIO], first_index:int=0, max_events:int=100_000_000):
if type(fileName) is str:
logging.debug(f' opening file {fileName}')
#logging.warning(f' opening file {fileName}')
logging.warning(f' {fileName.split('/')[-1]}')
self.file_list = [fileName]
hdf = h5py.File(fileName, 'r', swmr=True)
elif type(fileName) is h5py.File: