From 0d9acb1cb0eee409405954a253f09707eeb834dc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 4 May 2023 12:01:14 -0400 Subject: [PATCH] numpy: drop `numpy.float` in py311 --- piker/data/_sharedmem.py | 2 +- piker/ui/_interaction.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: