Skip to content

Commit

Permalink
fix filename
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusOrsoe committed Sep 21, 2024
1 parent 476441d commit 822b7a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graphnet/data/dataconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 822b7a5

Please sign in to comment.