mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2025-12-12 11:01:38 +08:00
[NumPy] Remove references to deprecated NumPy type aliases.
This change replaces references to a number of deprecated NumPy type aliases (np.bool, np.int, np.float, np.complex, np.object, np.str) with their recommended replacement (bool, int, float, complex, object, str). NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy. PiperOrigin-RevId: 501824490
This commit is contained in:
committed by
Diego de las Casas
parent
3c1aa70723
commit
c7e2ef28be
@@ -52,8 +52,8 @@ class MujobanPad(composer.Entity):
|
||||
pos=[0, 0, (height / 2 or -0.001)],
|
||||
size=[size / 2, size / 2, (height / 2 or 0.001)], rgba=rgba)
|
||||
self._activated = False
|
||||
self._rgba = np.array(rgba, dtype=np.float)
|
||||
self._pressed_rgba = np.array(pressed_rgba, dtype=np.float)
|
||||
self._rgba = np.array(rgba, dtype=float)
|
||||
self._pressed_rgba = np.array(pressed_rgba, dtype=float)
|
||||
self._activator = None
|
||||
self._detection_tolerance = detection_tolerance
|
||||
self._boxes = []
|
||||
|
||||
Reference in New Issue
Block a user