verdict.py
def create_dataset_fixed( f, path, data, hdf5_module, attrs=None ):
    '''Accounts for h5py not recognizing unicode. This is fixed
    in h5py 2.9.0, with PR #1032 (not merged at the time of writing).
    The fix used here is exactly what the PR does.'''
    
    try:
        special_dtype = hdf5_module.special_dtype( vlen=six.text_type )
    except AttributeError:
        special_dtype = h5py.special_dtype( vlen=six.text_type )

    try:
        f.create_dataset( path, data=data )
    except TypeError:
        data = np.array(
            data,
            dtype=special_dtype,
        )
        f.create_dataset( path, data=data )

    if attrs is not None:
        for key, item in attrs.items():
            try:
                f[path].attrs[key] = item
            except TypeError:
                item = np.array(
                    item,
                    dtype=special_dtype,
                )
                f[path].attrs[key] = item
Accounts for h5py not recognizing unicode. This is fixed
    in h5py 2.9.0, with PR #1032 (not merged at the time of writing).
    The fix used here is exactly what the PR does.
Accounts for h5py not recognizing unicode. This is fixed
in h5py 2.9.0, with PR #1032 (not merged at the time of writing).
The fix used here is exactly what the PR does.
Accounts for h5py not recognizing unicode . This is fixed in h5py 2 . 9 . 0 with PR #1032 ( not merged at the time of writing ) . The fix used here is exactly what the PR does .
def create_dataset_fixed( f, path, data, hdf5_module, attrs=None ):
    try:
        special_dtype = hdf5_module.special_dtype( vlen=six.text_type )
    except AttributeError:
        special_dtype = h5py.special_dtype( vlen=six.text_type )
    try:
        f.create_dataset( path, data=data )
    except TypeError:
        data = np.array(
            data,
            dtype=special_dtype,
        )
        f.create_dataset( path, data=data )
    if attrs is not None:
        for key, item in attrs.items():
            try:
                f[path].attrs[key] = item
            except TypeError:
                item = np.array(
                    item,
                    dtype=special_dtype,
                )
                f[path].attrs[key] = item
def create_dataset_fixed ( f , path , data , hdf5_module , attrs = None ) : try : special_dtype = hdf5_module . special_dtype ( vlen = six . text_type ) except AttributeError : special_dtype = h5py . special_dtype ( vlen = six . text_type ) try : f . create_dataset ( path , data = data ) except TypeError : data = np . array ( data , dtype = special_dtype , ) f . create_dataset ( path , data = data ) if attrs is not None : for key , item in attrs . items ( ) : try : f [ path ] . attrs [ key ] = item except TypeError : item = np . array ( item , dtype = special_dtype , ) f [ path ] . attrs [ key ] = item
Accounts for h5py not recognizing unicode.
Accounts for h5py not recognizing unicode .
'''Accounts for h5py not recognizing unicode. This is fixed
    in h5py 2.9.0, with PR #1032 (not merged at the time of writing).
    The fix used here is exactly what the PR does.'''
f
path
data
hdf5_module
attrs