Skip to content

Conversation

@inducer
Copy link
Owner

@inducer inducer commented Jun 10, 2022

Stolen from inducer/meshmode#284.

@inducer inducer requested a review from kaushikcfd June 10, 2022 21:26
Comment on lines +483 to +498
def tag_axes(
actx: ArrayContext,
dim_to_tags: Mapping[int, ToTagSetConvertible],
ary: ArrayT) -> ArrayT:
Copy link
Owner Author

@inducer inducer Jun 10, 2022

Choose a reason for hiding this comment

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

Note that I've changed the argument order here, compared to the original in inducer/meshmode#284. The rationale for this is that the array might be a complicated expression, and so I find it easiest if it comes last (because you don't have to remember that you still "owe" otherwise simpler arguments of tag_axes. Also for consistency with tag_axis.

@inducer
Copy link
Owner Author

inducer commented Jun 10, 2022

Unlike my earlier, misplaced comment suggested, this should be ready for a look. Sorry about the confusion!

Copy link
Collaborator

@kaushikcfd kaushikcfd left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

inducer and others added 2 commits June 11, 2022 16:05
Co-authored-by: Kaushik Kulkarni <kaushikcfd@gmail.com>
@inducer inducer merged commit 78ee5a1 into main Jun 11, 2022
@inducer inducer deleted the tag-axes branch June 11, 2022 22:13
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.

3 participants