GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ignore rgb dims in `subsample_array` · Issue #794 · fastplotlib/fastplotlib Closed Descriptionthis should do it: Index: fastplotlib/utils/functions.py IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/fastplotlib/utils/functions.py b/fastplotlib/utils/functions.py --- a/fastplotlib/utils/functions.py +++ b/fastplotlib/utils/functions.py (date 1744521697634) @@ -460,8 +460,12 @@ # get the step size for the slices slices = [slice(None, None, int(s)) for s in np.floor(arr.shape / ns).astype(int)] + + # omit dims that should be ignored if ignore_dims is not None: for dim in ignore_dims: slices[dim] = slice(None) - + + slices = tuple(slices) + return np.asarray(arr[slices]) Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |