Skip to content

Commit

Permalink
Update file_tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gduscher committed Oct 30, 2024
1 parent 41b97b3 commit be8df15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyTEMlib/file_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit be8df15

Please sign in to comment.