Skip to content

Commit

Permalink
Update interface_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gduscher committed Dec 16, 2024
1 parent 9249ddc commit 937b6f9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sidpy/io/interface_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@ def add_to_dict(file_dict, name):
if extension in ['.hf5']:
display_file_list = f" {name} - {size:.1f} MB"
elif extension in ['.h5', '.ndata']:
try:
reader = SciFiReaders.NionReader(full_name)
dataset_nion = reader.read()
display_name = dataset_nion.title
display_file_list = f" {display_name}{extension} - {size:.1f} MB"
except:
display_file_list = f" {name} - {size:.1f} MB"
display_file_list = f" {name} - {size:.1f} MB"
else:
display_file_list = f' {name} - {size:.1f} MB'
file_dict[name] = {'display_string': display_file_list, 'basename': basename, 'extension': extension,
Expand Down

0 comments on commit 937b6f9

Please sign in to comment.