Skip to content

Instantly share code, notes, and snippets.

@qmaruf
Created September 10, 2019 03:59
Show Gist options
  • Save qmaruf/0cabca2334e82fc8b4188663cf7393d5 to your computer and use it in GitHub Desktop.
Save qmaruf/0cabca2334e82fc8b4188663cf7393d5 to your computer and use it in GitHub Desktop.
import numpy as np
import h5py
with h5py.File('data.h5', 'w') as hndl:
hndl['mystring'] = 'hello world!'
with h5py.File('data.h5', 'r') as hndl:
print (hndl['mystring'].value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment