Skip to content

Commit

Permalink
Assume '/' if group string is empty
Browse files Browse the repository at this point in the history
This is so that we can load datasets at the top level.

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed May 21, 2024
1 parent dca8716 commit dc67471
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hexrdgui/load_hdf5_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ def results(self):
group = os.path.split(path_list)[0]
dataset = os.path.split(path_list)[1]

# Assume '/' if the group string is empty
group = '/' if group == '' else group

return group, dataset, remember

0 comments on commit dc67471

Please sign in to comment.