From c9bf11bc059a3e145713cf9d84677cf127036b58 Mon Sep 17 00:00:00 2001 From: Antonino Ingargiola Date: Wed, 24 Jun 2015 07:11:26 -0700 Subject: [PATCH] Save a space for empty descriptions. See #4. --- phconvert/hdf5.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phconvert/hdf5.py b/phconvert/hdf5.py index 3fe3e62..3823770 100644 --- a/phconvert/hdf5.py +++ b/phconvert/hdf5.py @@ -337,7 +337,8 @@ def dict_to_group(group, dictionary): # Set title through property access to work around pytable issue # under python 3 (https://github.com/PyTables/PyTables/issues/469) node = group._f_get_child(key) - node.title = b'' # saved as binary both on py2 and py3 + # Save a single space to workaround h5labview bug (see issue #4) + node.title = b' ' # saved as binary both on py2 and py3 h5file.flush() def load_photon_hdf5(filename, strict=True):