From 51c4a8711b4c2dd5ee96f72bce98b11935c73c9b Mon Sep 17 00:00:00 2001 From: Antonino Ingargiola Date: Wed, 24 Jun 2015 10:34:56 -0700 Subject: [PATCH] Notebooks: avoid empty TITLE in manually created groups. See #4. --- .../Convert ns-ALEX Becker-Hickl files to Photon-HDF5.ipynb | 4 ++-- notebooks/Convert ns-ALEX HT3 files to Photon-HDF5.ipynb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/notebooks/Convert ns-ALEX Becker-Hickl files to Photon-HDF5.ipynb b/notebooks/Convert ns-ALEX Becker-Hickl files to Photon-HDF5.ipynb index d8e7aa0..e4ecf62 100644 --- a/notebooks/Convert ns-ALEX Becker-Hickl files to Photon-HDF5.ipynb +++ b/notebooks/Convert ns-ALEX Becker-Hickl files to Photon-HDF5.ipynb @@ -386,8 +386,8 @@ }, "outputs": [], "source": [ - "h5file.create_group('/', 'user')\n", - "bh_group = h5file.create_group('/user', 'becker_hickl')" + "h5file.create_group('/', 'user', title=b'A custom group.')\n", + "bh_group = h5file.create_group('/user', 'becker_hickl', title=b'Full metadata from original .SET file.')" ] }, { diff --git a/notebooks/Convert ns-ALEX HT3 files to Photon-HDF5.ipynb b/notebooks/Convert ns-ALEX HT3 files to Photon-HDF5.ipynb index 0583b0c..df09e1f 100644 --- a/notebooks/Convert ns-ALEX HT3 files to Photon-HDF5.ipynb +++ b/notebooks/Convert ns-ALEX HT3 files to Photon-HDF5.ipynb @@ -368,11 +368,11 @@ "outputs": [], "source": [ "h5file = d['_data_file']\n", - "h5file.create_group('/', 'user')\n", - "pq_group = h5file.create_group('/user', 'picoquant')\n", + "h5file.create_group('/', 'user', title=b'A custom group.')\n", + "pq_group = h5file.create_group('/user', 'picoquant', title=b'Full metadata from original .HT3 file.')\n", "for key in meta: \n", " if np.size(meta[key]) > 0:\n", - " h5file.create_table(pq_group, key, obj=meta[key])" + " h5file.create_table(pq_group, key, obj=meta[key], title=phc.hdf5._EMPTY)" ] }, {