Skip to content

Rebuild axes in setAxisFlow from plain Python edge values - #31

Open
davidwalter2 wants to merge 1 commit into
WMass:mainfrom
davidwalter2:260830_setAxisFlowEdges
Open

Rebuild axes in setAxisFlow from plain Python edge values#31
davidwalter2 wants to merge 1 commit into
WMass:mainfrom
davidwalter2:260830_setAxisFlowEdges

Conversation

@davidwalter2

Copy link
Copy Markdown
Collaborator

setAxisFlow rebuilds an axis by passing its edges back to the axis
constructor. When ax.edges comes back as an ndarray that fails: hist's
Integer axis rejects numpy scalars for its bounds, and the variable-axis
constructor will not take an ndarray where a sequence of edges is expected.

Convert the edges to a plain list once, and take the Integer bounds as
int. Regular keeps ax.size with the first and last edge as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HrsrmERvJF2Vafn7wE1B3v

hist axis constructors reject numpy scalars for the Integer axis bounds and
do not accept an ndarray where a sequence of edges is expected, so
setAxisFlow raised on axes whose edges come back as an ndarray. Convert the
edges to a list once and take the Integer bounds as int.
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