Skip to content

Commit

Permalink
revert optimizable_io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaatalay committed Jan 17, 2025
1 parent d693b7f commit 1138a37
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions desc/io/optimizable_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def _unjittable(x):
if isinstance(x, dict):
return all([_unjittable(y) or y is None for y in x.values()])
if hasattr(x, "dtype") and np.ndim(x) == 0:
try:
return np.issubdtype(x.dtype, np.bool_) or np.issubdtype(x.dtype, np.int_)
except TypeError:
return True
return np.issubdtype(x.dtype, np.bool_) or np.issubdtype(x.dtype, np.int_)
return isinstance(
x, (str, types.FunctionType, functools.partial, bool, int, np.int_)
)
Expand Down

0 comments on commit 1138a37

Please sign in to comment.