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

style[cartesian]: readability improvements and more type hints #1752

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

romanc
Copy link
Contributor

@romanc romanc commented Nov 27, 2024

Description

This PR detaches a couple of cleanups in the dace backend from the in-progress gt4py/dace bridge: mostly readability improvements and some easy type hints. There's also the occasional unused variable / argument in here.

Requirements

  • All fixes and/or new features come with corresponding tests.
    N/A: mypy is happy with the new type hints
  • Important design decisions have been documented in the approriate ADR inside the docs/development/ADRs/ folder.
    N/A

/cc @twicki @FlorianDeconinck I've been reading more code "outside my comfort zone" today leading to this small cleanup PR

Roman Cattaneo added 2 commits November 27, 2024 17:38
This might have been used before or might have been a copy/paste thing.
In any case, it's not used anymore now and the test totally fine
removing that external.
Readability improvements and some easy to add type hints.
Copy link
Contributor

@egparedes egparedes left a comment

Choose a reason for hiding this comment

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

Style-wise looks good to me. I leave the proper code review to @FlorianDeconinck and @twicki

src/gt4py/cartesian/backend/dace_backend.py Show resolved Hide resolved
@romanc
Copy link
Contributor Author

romanc commented Dec 4, 2024

ping @FlorianDeconinck / @twicki

Copy link
Contributor

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

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

LGTM

@havogt havogt merged commit 39fb949 into GridTools:main Dec 5, 2024
39 checks passed
@romanc romanc deleted the romanc/cleanups-in-dace-backend branch December 6, 2024 17:36
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.

4 participants