From 822b7a59624b5f39c49c1243391437ca53e964d0 Mon Sep 17 00:00:00 2001 From: RasmusOrsoe Date: Sat, 21 Sep 2024 09:35:15 +0200 Subject: [PATCH] fix filename --- src/graphnet/data/dataconverter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphnet/data/dataconverter.py b/src/graphnet/data/dataconverter.py index a7ce98964..58a8251ee 100644 --- a/src/graphnet/data/dataconverter.py +++ b/src/graphnet/data/dataconverter.py @@ -241,6 +241,8 @@ def _create_file_name(self, input_file_path: Union[str, I3FileSet]) -> str: for ext in self._file_reader._accepted_file_extensions: if file_name.endswith(ext): file_name_without_extension = file_name.replace(ext, "") + else: + file_name_without_extension = file_name return file_name_without_extension.replace(".i3", "") @final