From dc674716e07a5285bb417d7d7039351233eb560d Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Tue, 21 May 2024 08:35:52 -0400 Subject: [PATCH] Assume '/' if group string is empty This is so that we can load datasets at the top level. Signed-off-by: Patrick Avery --- hexrdgui/load_hdf5_dialog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hexrdgui/load_hdf5_dialog.py b/hexrdgui/load_hdf5_dialog.py index f508e06c7..a6f23826a 100644 --- a/hexrdgui/load_hdf5_dialog.py +++ b/hexrdgui/load_hdf5_dialog.py @@ -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