[codex] Fix groundtruth object-array indexing#1856
Merged
FlorianPfaff merged 1 commit intomainfrom Apr 25, 2026
Merged
Conversation
Contributor
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining
|
a0be01f to
2945902
Compare
Contributor
3f0340a to
d53701d
Compare
d53701d to
d0d9a57
Compare
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.

Summary
has_inputsflag soinputs=Noneis treated the same as missing inputs.inputs[:, t - 1]) to match the existing(input_dim, n_timesteps - 1)assertion.Root cause
generate_groundtruthstores each timestep as an element in a one-dimensional object array. Some custom transition paths indexed it as if it were a dense multidimensional array, which raises before transition callbacks can run. The input-driven branch also read rows frominputseven though the function validates inputs as timestep columns.Validation