Skip to content

Commit

Permalink
Notebooks: avoid empty TITLE in manually created groups. See #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jun 24, 2015
1 parent 12711a6 commit 51c4a87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.')"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions notebooks/Convert ns-ALEX HT3 files to Photon-HDF5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
{
Expand Down

0 comments on commit 51c4a87

Please sign in to comment.