From 7083ea626adcd2e44cd973e650b0a00222c5885c Mon Sep 17 00:00:00 2001 From: apasarkar Date: Sat, 19 Apr 2025 06:19:06 +0800 Subject: [PATCH] Fixes array issue that was causing incompatibility in the subsample array function for lazy array classes --- fastplotlib/utils/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastplotlib/utils/functions.py b/fastplotlib/utils/functions.py index 87d764e4..d6d996a4 100644 --- a/fastplotlib/utils/functions.py +++ b/fastplotlib/utils/functions.py @@ -456,7 +456,7 @@ def subsample_array( subsample of the input array """ if np.prod(arr.shape) <= max_size: - return arr # no need to subsample if already below the threshold + return arr[:] # no need to subsample if already below the threshold # get factor by which to divide all dims f = np.power((np.prod(arr.shape) / max_size), 1.0 / arr.ndim) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy