[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:
Peter Hawkins
2023-01-13 13:41:21 +00:00
committed by Diego de las Casas
parent 3c1aa70723
commit c7e2ef28be

View File

@@ -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 = []