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
2 changes: 1 addition & 1 deletion mpl_playback/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _find_obj(names, objs, obj, accessors):
if isinstance(maybe, np.ndarray):
# gotta special case otherwise potential
# for ValueErrors when doing obj in numpy-array
if maybe.dtype == np.object:
if maybe.dtype == object:
if obj in maybe:
return name, int(np.where(maybe == obj)[0][0])
elif isinstance(maybe, (list, tuple)) and obj in maybe:
Expand Down
2 changes: 1 addition & 1 deletion mpl_playback/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def listify_dict(d):
objs = []
for k, v in d.items():
if isinstance(v, (list, tuple, dict, np.ndarray, Axes, SubplotBase, Figure)):
if isinstance(v, np.ndarray) and not v.dtype == np.object:
if isinstance(v, np.ndarray) and not v.dtype == object:
continue
if "__" in k:
continue
Expand Down