We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95ed34 commit 29b098dCopy full SHA for 29b098d
fastplotlib/utils/functions.py
@@ -456,7 +456,7 @@ def subsample_array(
456
subsample of the input array
457
"""
458
if np.prod(arr.shape) <= max_size:
459
- return arr # no need to subsample if already below the threshold
+ return arr[:] # no need to subsample if already below the threshold
460
461
# get factor by which to divide all dims
462
f = np.power((np.prod(arr.shape) / max_size), 1.0 / arr.ndim)
0 commit comments