Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build
*.pyc
*.c
*.so
*.egg-info/

# OS or Editor folders
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion deepdish/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import itertools as itr
import sys
from contextlib import contextmanager
warnings.simplefilter("ignore", np.ComplexWarning)
warnings.simplefilter("ignore", np.exceptions.ComplexWarning)

_is_verbose = False
_is_silent = False
Expand Down
4 changes: 2 additions & 2 deletions deepdish/io/hdf5io.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ def _get_compression_filters(compression='default'):


def _save_ndarray(handler, group, name, x, filters=None):
if np.issubdtype(x.dtype, np.unicode_):
if np.issubdtype(x.dtype, np.str_):
# Convert unicode strings to pure byte arrays
strtype = b'unicode'
itemsize = x.itemsize // 4
atom = tables.UInt8Atom()
x = x.view(dtype=np.uint8)
elif np.issubdtype(x.dtype, np.string_):
elif np.issubdtype(x.dtype, np.bytes_):
strtype = b'ascii'
itemsize = x.itemsize
atom = tables.StringAtom(itemsize)
Expand Down