Skip to content

Conversation

@havogt
Copy link
Contributor

@havogt havogt commented Dec 12, 2025

No description provided.

Comment on lines +164 to +165
if cpm.is_call_to(node, "scan"):
can_collect_children = False
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for discussion...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Till suggested to forbid cs extract literal expressions


@pytest.mark.uses_scan
def test_scan_init_duplicated(cartesian_case):
@gtx.scan_operator(axis=KDim, forward=True, init=((1.0,), (1.0,)))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in main the {1.0} tuple gets extracted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant