Repository navigation
Conversation
soxofaan
reviewed
Nov 20, 2026
| [ | ||
| (None, {"from_parameter": "x"}), | ||
| (["data"], {"from_parameter": "data"}), | ||
| (["x", "y"], [{"from_parameter": "x"}, {"from_parameter": "y"}]), |
Member
There was a problem hiding this comment.
this x,y use case makes little sense. The callable is just lambda x:x. Does this test actually pass?
Author
There was a problem hiding this comment.
Yes, the original case passes: the x/y adapter packs both parent parameters into a list when the callable takes one argument, so lambda x: x returns the whole list. That made it a confusing example. In 1dc23aa I replaced it with a merge_cubes test using lambda x, y: y to keep the right-hand pixel in the overlap. It checks that the resolver graph references only y. The unary apply regression for #569 is still covered.
This branch has not been deployed
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.
Fixes #569.
A callback that returns its input, such as
cube.apply(lambda x: x), now wraps that input in a standardconstantresult node. This keeps the original parameter reference and gives the callback graph a valid result.Four regression cases cover direct inputs, remapped parameters, bundled inputs, and
DataCube.apply. The builder and DataCube suites passed with 410 tests and 2 skips. Pre-commit passed on the changed files.Codex authored the patch, regression tests, and this description.