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 8e27d7e commit dd013e1
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 @@ -831,7 +831,7 @@ def open_file(filename=None, h5_group=None, write_hdf_file=False, sum_frames=Fa
dataset_dict = {}
for index, dataset in enumerate(datasets):
title = dataset.title.split('/')[2]
dataset.title = dataset.title.split('/')[-1]
dataset.title = str(dataset.title).split('/')[-1]
dataset_dict[title] = dataset
if index == 0:
file = datasets[0].h5_dataset.file
Expand Down

0 comments on commit dd013e1

Please sign in to comment.