Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test[next]: Add test for vertical boundary condition with scan #1283

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tehrengruber
Copy link
Contributor

Draft, WIP

@tehrengruber tehrengruber marked this pull request as draft July 5, 2023 15:04
@@ -817,7 +817,7 @@ def deref(self) -> Any:
assert isinstance(k_pos, int)
# the following range describes a range in the field
# (negative values are relative to the origin, not relative to the size)
slice_column[self.column_axis] = range(k_pos, k_pos + len(column_range))
slice_column[self.column_axis] = range(k_pos, min(k_pos + len(column_range), column_range.stop))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed we want to implement a different solution (than written here) where the size of the column remains len(column_range), but is filled with UNDEFINED values for shifts that go out of bounds.

Copy link
Contributor

Choose a reason for hiding this comment

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

Filling with undefined is probably not good enough, in case we do shift(K,-1)(shift(K,1)(inp)), I believe we need the original values in the full column. I think, this requires the same shift and intersect logic that we discussed for embedded field view.
Maybe the undefined implementation is good enough for many use-cases, but when it breaks it will be hard to find the error.

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.

None yet

2 participants