From: W. Trevor King Date: Wed, 20 Apr 2011 20:31:56 +0000 (-0400) Subject: Special case for '/' group in h5_create_group. X-Git-Tag: 0.5~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d84f6b5392236e8d2b1513178063bfc2a5f5893;p=pypiezo.git Special case for '/' group in h5_create_group. --- 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)