Skip to content

Commit

Permalink
fix: remove deprecated type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdevpl committed Feb 15, 2025
1 parent aa2a399 commit a6a74b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def now_timestamp():
return datetime.datetime.now().strftime('%Y%m%d%H%M%S%f')


def random_data(shape=None, dtype=np.int):
if shape is None:
return dtype(np.random.rand() * 1000)
def random_data(shape, dtype):
return (np.random.rand(*shape) * 1000).astype(dtype)


Expand Down

0 comments on commit a6a74b1

Please sign in to comment.