Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix numpy. #36

Merged
merged 2 commits into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sense_emu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
)

__project__ = 'sense-emu'
__version__ = '1.2'
__version__ = '1.2.1'
__author__ = 'Raspberry Pi Foundation'
__author_email__ = '[email protected]'
__url__ = 'http://sense-emu.readthedocs.io/'
Expand Down
4 changes: 2 additions & 2 deletions sense_emu/humidity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions sense_emu/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Binary file modified sense_emu/pixel_grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions sense_emu/pressure.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,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._pressures = np.full((25,), self._pressure, dtype=np.float)
self._temperatures = np.full((25,), self._temperature, dtype=np.float)
self._pressures = np.full((25,), self._pressure, dtype=float)
self._temperatures = np.full((25,), self._temperature, dtype=float)
self.simulate_noise = simulate_noise

def close(self):
Expand Down
Binary file modified sense_emu/sense_hat_text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.