From d1f45b0883d0fa83d97aecac6cb9a69874c44d2f Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 7 Apr 2022 14:20:40 -0400 Subject: [PATCH] Add `ShmArray.last()` docstr --- piker/data/_sharedmem.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/piker/data/_sharedmem.py b/piker/data/_sharedmem.py index 74707c6f..6bc69eb4 100644 --- a/piker/data/_sharedmem.py +++ b/piker/data/_sharedmem.py @@ -240,7 +240,13 @@ class ShmArray: def last( self, length: int = 1, + ) -> np.ndarray: + ''' + Return the last ``length``'s worth of ("row") entries from the + array. + + ''' return self.array[-length:] def push(