Skip to content

Allow plotting numpy arrays with uint dtypes#585

Merged
nvaytet merged 3 commits into
mainfrom
handle-uint-dtypes
Jul 2, 2026
Merged

Allow plotting numpy arrays with uint dtypes#585
nvaytet merged 3 commits into
mainfrom
handle-uint-dtypes

Conversation

@nvaytet

@nvaytet nvaytet commented Jul 2, 2026

Copy link
Copy Markdown
Member

The following would fail

import plopp as pp
import numpy as np

a = (np.random.random(20) * 1000).astype('uint32')

pp.plot(a)

We now internally convert numpy uint dtypes to int64 before storing into a Scipp variable, to allow plotting them.

@nvaytet nvaytet merged commit 7a15c1f into main Jul 2, 2026
5 checks passed
@nvaytet nvaytet deleted the handle-uint-dtypes branch July 2, 2026 14:00
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.

1 participant