Repository navigation
Pass the wrapper to the table cut's calls, so its NoAdjoint twin infers on Julia 1.13 - #1059
Merged
Merged
Conversation
…rs on Julia 1.13 The fixture's local closure captured `w`, which for the twin is the `NoAdjoint` type, held as a `UnionAll` field that Julia 1.13 does not infer through. The ForwardDiff AD job's check that every scenario infers then failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The ForwardDiff job of the AD workflow fails on
main, because one test fixture does not infer on Julia 1.13.This changes only the fixture, so the check that every scenario infers passes again.
Claude Opus 5.5 [high]
Failure. On
main(runs 47332341889 and 47334708947)ad / ForwardDifffails one test, "Benchmarks call each scenario and matrix case directly" (test/ad/scenarios.jl:158).The scenario "NoAdjoint Convolution lag contributions of a table cut at a report day" returns
AnyfromBase.promote_op.CI's Julia
1is now 1.13.4.Cause.
_table_cutintest/ADFixtures/src/registry.jl(added in #1049) built a local closurecut(K)that captured the wrapperw.For the twin,
wis the typeNoAdjoint, which a closure holds as aUnionAllfield.Julia 1.13 does not infer through that field.
The same body with
wpassed straight to_table_contributionsinfers asFloat64, and the package's own_table_contributions(NoAdjoint, K; stop)infers on its own, sosrcneeds no change.Fix. Each call passes
witself, with a comment saying why.Evidence (local, Julia 1.13.4).
This was opened by a bot. Please ping @seabbs for any questions.