diff --git a/piker/data/_sharedmem.py b/piker/data/_sharedmem.py index bc1ded75..bd40ad7e 100644 --- a/piker/data/_sharedmem.py +++ b/piker/data/_sharedmem.py @@ -271,7 +271,7 @@ class ShmArray: # type that all field values will be cast to # in the returned view. - common_dtype: np.dtype = np.float, + common_dtype: np.dtype = float, ) -> np.ndarray: diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index b4a78931..1219e94e 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -620,7 +620,7 @@ class ChartView(ViewBox): # Ignore axes if mouse is disabled mouseEnabled = np.array( self.state['mouseEnabled'], - dtype=np.float, + dtype=float, ) mask = mouseEnabled.copy() if axis is not None: