Skip to content

Commit

Permalink
Remove deprecated np.int and np.float
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Mar 18, 2021
1 parent 680f423 commit 4705e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aesara/tensor/random/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _shape_from_params(self, dist_params, rep_param_idx=1, param_shapes=None):

multinomial = MultinomialRV()

vsearchsorted = np.vectorize(np.searchsorted, otypes=[np.int], signature="(n),()->()")
vsearchsorted = np.vectorize(np.searchsorted, otypes=[int], signature="(n),()->()")


class CategoricalRV(RandomVariable):
Expand Down
2 changes: 1 addition & 1 deletion tests/tensor/test_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_filter_float_subclass():
test_type = TensorType("float64", broadcastable=[])

nan = np.array([np.nan], dtype="float64")[0]
assert isinstance(nan, np.float) and not isinstance(nan, np.ndarray)
assert isinstance(nan, float) and not isinstance(nan, np.ndarray)

filtered_nan = test_type.filter(nan)
assert isinstance(filtered_nan, np.ndarray)
Expand Down

0 comments on commit 4705e01

Please sign in to comment.