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

refactor[next]: use __gt_dims__ in LocatedField #1307

Merged
merged 4 commits into from
Aug 3, 2023
Merged

refactor[next]: use __gt_dims__ in LocatedField #1307

merged 4 commits into from
Aug 3, 2023

Conversation

havogt
Copy link
Contributor

@havogt havogt commented Aug 2, 2023

Rename LocatedField.axes to LocatedField.__gt_dims__ to make it compatible with the Cartesian and as preparation to switch to the new field implementation.

Note that gt4py.cartesian requires returning a tuple of str, for gt4py.next we require tuple[Dimension]. I propose to relax the cartesian requirement to convertible to str, which should already work as the documentation demands to go through gt4py.storage.utils.get_dims() which has string conversion.

Co-authored-by: Till Ehrengruber <till.ehrengruber@cscs.ch>
@havogt havogt merged commit 26ba7bb into main Aug 3, 2023
@havogt havogt deleted the use_gt_dims branch August 3, 2023 10:01
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