Rebuild axes in setAxisFlow from plain Python edge values - #31
Open
davidwalter2 wants to merge 1 commit into
Open
Rebuild axes in setAxisFlow from plain Python edge values#31davidwalter2 wants to merge 1 commit into
davidwalter2 wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
setAxisFlowrebuilds an axis by passing its edges back to the axisconstructor. When
ax.edgescomes back as an ndarray that fails:hist'sIntegeraxis rejects numpy scalars for its bounds, and the variable-axisconstructor will not take an ndarray where a sequence of edges is expected.
Convert the edges to a plain list once, and take the
Integerbounds asint.Regularkeepsax.sizewith the first and last edge as before.🤖 Generated with Claude Code
https://claude.ai/code/session_01HrsrmERvJF2Vafn7wE1B3v