Repository navigation
Add validation and clean up compressed_axes=None ambiguity in GCXS. - #1015
Merged
Merged
Conversation
hameerabbasi
force-pushed
the
validation-cleanup
branch
2 times, most recently
from
October 26, 2026 07:59
a2cf763 to
a1effe9
Compare
hameerabbasi
force-pushed
the
validation-cleanup
branch
from
October 26, 2026 08:00
a1effe9 to
ee9781c
Compare
4 of 10 tasks
This was referenced Nov 13, 2026
hameerabbasi
pushed a commit
that referenced
this pull request
Nov 13, 2026
* fix: allow GCXS data of any dtype again (#1027) Since #1015, GCXS.__init__ passes `data` to the jitted _validate_gcxs_arrays, and Numba can't type float16, object or longdouble arrays, so building a GCXS from them failed, as did ufuncs that return float16 (np.sin on int8 data). The check only needs the length of `data`, so pass that instead. `data.ndim` is already checked before the call. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: validate GCXS with a stand-in for data, leave the jitted check as is Coverage can't see inside the jitted _validate_gcxs_arrays, so the lines changed there counted as uncovered. Restore the function and pass a zero-copy boolean array with the shape of `data` instead, which Numba can type for any data dtype. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hq1ACTsK85bRrY28fUQ7b3 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
What type of PR is this? (check all applicable)
Related issues
Checklist
Please explain your changes below.