From be8df155989d4c738f26917fe293c780c414143e Mon Sep 17 00:00:00 2001 From: Gerd Duscher <50049264+gduscher@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:00:33 -0400 Subject: [PATCH] Update file_tools.py --- pyTEMlib/file_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyTEMlib/file_tools.py b/pyTEMlib/file_tools.py index d25cb3ef..ef623a72 100644 --- a/pyTEMlib/file_tools.py +++ b/pyTEMlib/file_tools.py @@ -830,7 +830,7 @@ def open_file(filename=None, h5_group=None, write_hdf_file=False, sum_frames=Fa else: dataset_dict = {} for index, dataset in enumerate(datasets): - title = str(dataset.title).split('/')[2] + title = str(dataset.title).split('/')[-1] dataset.title = str(dataset.title).split('/')[-1] dataset_dict[title] = dataset if index == 0: