GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ignore rgb dims in `subsample_array` · Issue #794 · fastplotlib/fastplotlib

ignore rgb dims in subsample_array #794

New issue
Copy link
New issue
Copy link
Closed
#797
Closed
ignore rgb dims in subsample_array#794
#797
Copy link
Assignees
FlynnOConnell

Description

@kushalkolar
kushalkolar
opened on Apr 13, 2025
Issue body actions

this 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

  1. kushalkolar
    assigned
    FlynnOConnell
    and
    kushalkolar
    and unassigned
    kushalkolar
    on Apr 13, 2025
  2. FlynnOConnell
    linked a pull request that will close this issueadd ignore_dims arg to subsample_array #797on Apr 13, 2025
  3. kushalkolar
    closed this as completedin #797on Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @FlynnOConnell
    FlynnOConnell

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue 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.