Skip to content

Trying to fix ndarray_to_buffer - DO NOT MERGE#16

Open
jeromeetienne wants to merge 4 commits into
vispy:masterfrom
jeromeetienne:pr_fix_ndarray_to_buffer
Open

Trying to fix ndarray_to_buffer - DO NOT MERGE#16
jeromeetienne wants to merge 4 commits into
vispy:masterfrom
jeromeetienne:pr_fix_ndarray_to_buffer

Conversation

@jeromeetienne

@jeromeetienne jeromeetienne commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

here is an early PR trying to generate valid command file from ./examples.

It starts with fixing #14

it includes an early attempt from @rougier on signals here

It includes a test file to verify it works here.

  • it generate a command file
  • then reread it and run the command queue
  • then it display the result.

if the issue is fixed, it should display a GSP scene (aka, in this particular case, 200 random points on the viewport)

@jeromeetienne jeromeetienne changed the title Trying to fix ndarray_to_buffer Trying to fix ndarray_to_buffer - DO NOT MERGE Sep 12, 2025
@rougier

rougier commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

I think the right way to fix the bug is in the gsp_matpltolib/core/buffer.py. When the array method is called and the buffer is created from memory, we need to add something like self._array = self._array.reshape(self._count, -1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants