Merge remote-tracking branch 'origin/main' into kafka

# Conflicts:
#	eos/file_reader.py
This commit is contained in:
2025-10-23 08:12:52 +02:00

View File

@@ -41,7 +41,7 @@ class AmorHeader:
def __init__(self, fileName:Union[str, h5py.File, BinaryIO]):
if type(fileName) is str:
logging.info(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,7 @@ 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' {fileName.split('/')[-1]}')
self.file_list = [fileName]
hdf = h5py.File(fileName, 'r', swmr=True)
elif type(fileName) is h5py.File: