From ccf600f79ae4f74626c0731051342d91aaea6529 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 2 Aug 2020 20:09:27 -0400 Subject: [PATCH] Add ravel() reference link --- piker/ui/_graphics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_graphics.py b/piker/ui/_graphics.py index 0eae1f81..4f8cc355 100644 --- a/piker/ui/_graphics.py +++ b/piker/ui/_graphics.py @@ -134,7 +134,7 @@ def _mk_lines_array(data: List, size: int) -> np.ndarray: """Create an ndarray to hold lines graphics objects. """ # TODO: might want to just make this a 2d array to be faster at - # flattening using .ravel()? + # flattening using .ravel(): https://stackoverflow.com/a/60089929 return np.zeros_like( data, shape=(int(size),),