Skip to content

Commit

Permalink
Merge pull request #36 from steveiliop56/master
Browse files Browse the repository at this point in the history
Fix numpy.
  • Loading branch information
G3zz authored May 19, 2023
2 parents 47c9fba + cb10826 commit fa4c772
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
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.

0 comments on commit fa4c772

Please sign in to comment.