From 6f0faa6a42ea60b88a4d617b1b6cf34a47768944 Mon Sep 17 00:00:00 2001 From: RaspberryDeveloper <106091011+raspberrydeveloper@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:15:24 +0200 Subject: [PATCH 1/2] Fix numpy. --- sense_emu/humidity.py | 4 ++-- sense_emu/imu.py | 6 +++--- sense_emu/pixel_grid.png | Bin 21520 -> 21520 bytes sense_emu/pressure.py | 4 ++-- sense_emu/sense_hat_text.png | Bin 908 -> 908 bytes 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sense_emu/humidity.py b/sense_emu/humidity.py index b051d70..d5aef00 100644 --- a/sense_emu/humidity.py +++ b/sense_emu/humidity.py @@ -120,8 +120,8 @@ def __init__(self, simulate_noise=True): self._noise_write() # The queue lengths are selected to accurately represent the response # time of the sensors - self._humidities = np.full((10,), self._humidity, dtype=np.float) - self._temperatures = np.full((31,), self._temperature, dtype=np.float) + self._humidities = np.full((10,), self._humidity, dtype=float) + self._temperatures = np.full((31,), self._temperature, dtype=float) self.simulate_noise = simulate_noise def close(self): diff --git a/sense_emu/imu.py b/sense_emu/imu.py index dff6eb8..88774a9 100644 --- a/sense_emu/imu.py +++ b/sense_emu/imu.py @@ -145,9 +145,9 @@ def __init__(self, simulate_world=True): # These queue lengths were arbitrarily selected to smooth the action of # the orientation sliders in the GUI; they bear no particular relation # to the hardware - self._gyros = np.full((10, 3), self._gyro, dtype=np.float) - self._accels = np.full((10, 3), self._accel, dtype=np.float) - self._comps = np.full((10, 3), self._compass, dtype=np.float) + self._gyros = np.full((10, 3), self._gyro, dtype=float) + self._accels = np.full((10, 3), self._accel, dtype=float) + self._comps = np.full((10, 3), self._compass, dtype=float) self.simulate_world = simulate_world def close(self): diff --git a/sense_emu/pixel_grid.png b/sense_emu/pixel_grid.png index b30710e6c45be242bf4d01161b9d5b86b85b23c9..ba873d63256bda8d174a576e7327277c845836e5 100644 GIT binary patch delta 23 dcmbQRf^h;61#&&*WD-|l-MU_D`^M<4!2o8%2>w2y28$F$w0Y~BnwEzGB delta 21 ccmeBS?_r-{&vl Date: Fri, 19 May 2023 11:26:03 +0100 Subject: [PATCH 2/2] Bump patch version --- sense_emu/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sense_emu/__init__.py b/sense_emu/__init__.py index 1683f2b..ac1af51 100644 --- a/sense_emu/__init__.py +++ b/sense_emu/__init__.py @@ -35,7 +35,7 @@ ) __project__ = 'sense-emu' -__version__ = '1.2' +__version__ = '1.2.1' __author__ = 'Raspberry Pi Foundation' __author_email__ = 'info@raspberrypi.org' __url__ = 'http://sense-emu.readthedocs.io/'