From 5d84f6b5392236e8d2b1513178063bfc2a5f5893 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 20 Apr 2011 16:31:56 -0400 Subject: [PATCH] Special case for '/' group in h5_create_group. --- pypiezo/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pypiezo/config.py b/pypiezo/config.py index 1e182b4..6df2460 100644 --- a/pypiezo/config.py +++ b/pypiezo/config.py @@ -463,6 +463,8 @@ def _pformat_hdf5(cwg, depth=0): def h5_create_group(cwg, path): "Create the group where the settings are stored (if necessary)." + if path == '/': + return cwg gpath = [''] for group in path.strip('/').split('/'): gpath.append(group) -- 2.26.2