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 — handling numpy int types · Issue #102 · fastplotlib/fastplotlib

handling numpy int types #102

New issue
Copy link
New issue
Copy link
Closed
Closed
handling numpy int types#102
Copy link

Description

@kushalkolar
kushalkolar
opened on Jan 3, 2023
Issue body actions

probably need to make numpy int scalers into python native types, this is annoying. Maybe implement in cleanup_slice()

for start_ix in ca_trial_range_ixs[:, 0]:
    start_ix = int(start_ix)
    plot_temporal["cue"].colors[start_ix:(start_ix + cue_frame_calcium)] = np.repeat(np.array([Color("w")]), 30, axis=0)

ca_trial_range_ixs is an array like this:

array([[   0,  290],
       [ 290,  580],
       [ 580,  870],
       [ 870, 1160],
       [1160, 1450],
       [1450, 1740],
       [1740, 2030],
       [2030, 2320],
       [2320, 2610],
       [2610, 2900],
       [2900, 3190],
       [3190, 3480],
       [3480, 3770],
       [3770, 4060],
       [4060, 4350],
       [4350, 4640],
       [4640, 4930],
       [4930, 5220],
       [5220, 5510],
       [5510, 5800],
       [5800, 6090],
       [6090, 6380],
       [6380, 6670],
       [6670, 6960],
       [6960, 7250],
       [7250, 7540],
       [7540, 7830],
       [7830, 8120],
       [8120, 8410]])

Activity

  1. kushalkolar commented on May 21, 2023

    @kushalkolar
    kushalkolar
    on May 21, 2023
    MemberAuthor
    More actions

    done in #177

  2. kushalkolar
    closed this as completedon May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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.