Skip to content

feat[next]: concat_where embedded (limited to 1D)#2545

Open
havogt wants to merge 3 commits intoGridTools:mainfrom
havogt:add_concat_where_embedded
Open

feat[next]: concat_where embedded (limited to 1D)#2545
havogt wants to merge 3 commits intoGridTools:mainfrom
havogt:add_concat_where_embedded

Conversation

@havogt
Copy link
Copy Markdown
Contributor

@havogt havogt commented Mar 23, 2026

No description provided.


def _concat_where(
mask_field: common.Field, true_field: common.Field, false_field: common.Field
mask: common.Domain,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
mask: common.Domain,
domain: common.Domain,

# remove the empty domains from the beginning and end
mask_values_to_intersected_domains_mapping = _trim_empty_domains(
mask_values_to_intersected_domains_mapping
inverted_masks = _invert_domain(mask)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
inverted_masks = _invert_domain(mask)
inverted_domain = _invert_domain(mask)


@WhereBuiltinFunction
def concat_where(
cond: common.Domain,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
domain: common.Domain,

maybe

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