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

Compute coordinates only on dimensions of interest #732

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

tpadioleau
Copy link
Member

@tpadioleau tpadioleau commented Jan 2, 2025

Remove the evaluation of coordinates in batch dimensions. The reason is that these dimensions don't need to be samplings, the related coordinates are actually ignored in the evaluator.

The batch dimensions are replaced by dummy dimensions that don't need to be initialised.

@tpadioleau tpadioleau self-assigned this Jan 2, 2025
@tpadioleau tpadioleau force-pushed the get-coords-on-dimensions-of-interest branch from 859523a to 8e4566f Compare January 2, 2025 09:46
@tpadioleau
Copy link
Member Author

@EmilyBourne I would like your opinion on this PR. What do you think ?

Copy link
Collaborator

@EmilyBourne EmilyBourne left a comment

Choose a reason for hiding this comment

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

This looks fine to me. I'm not sure that DElem<DDim<I1, I1, I2>, DDim<I2, I1, I2>> is the most readable but as this is the tests not the doc I don't think it matters.

@tpadioleau
Copy link
Member Author

This looks fine to me. I'm not sure that DElem<DDim<I1, I1, I2>, DDim<I2, I1, I2>> is the most readable but as this is the tests not the doc I don't think it matters.

I agree, it is on the todo list to remove this alias, it will be easier after this PR.

@tpadioleau
Copy link
Member Author

thank you

@tpadioleau tpadioleau merged commit 9760f26 into main Jan 6, 2025
55 checks passed
@tpadioleau tpadioleau deleted the get-coords-on-dimensions-of-interest branch January 6, 2025 09:37
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.

2 participants