Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: deprecate duplicate basic stencil definitions#358

Merged
romanc merged 1 commit intoNOAA-GFDL:developfrom
romanc:romanc/deprecate-duplicate-stencil-defn
Jan 9, 2026
Merged

refactor: deprecate duplicate basic stencil definitions#358
romanc merged 1 commit intoNOAA-GFDL:developfrom
romanc:romanc/deprecate-duplicate-stencil-defn

Conversation

@romanc
Copy link
Collaborator

@romanc romanc commented Jan 9, 2026

Description

Some basic stencils were named with a _defn suffix. We don't think the suffix is necessary and thus deprecate the version with a suffix and schedule their removal for the next release.

The deprecation warning can't be in the stencil itself. The python frontend of gt4py won't like this. I will thus warn from the stencil factory (which is assumed to be used in one way or another).

Lastly, the PR updates test_basic_operations.py to use the boilerplate module and avoid much of the setup by using get_factories_single_tile.

This is a follow-up from PR #337.

How has this been tested?

New & adapted test cases.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. add new modules to docs/docstrings/): N/A
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules: N/A
  • New check tests, if applicable, are included

Some basic stencils were named with a `_defn` suffix. We don't think the
suffix is necessary and thus deprecate the version with a suffix and
schedule their removal for the next release.

The deprecation warning can't be in the stencil itself. The python
frontend of gt4py won't like this. I will thus warn from the stencil
factory (which is assumed to be used in one way or another).

Lastly, the PR updates `test_basic_operations.py` to use the boilerplate
module and avoid much of the setup by using `get_factories_single_tile`.
Copy link
Collaborator

@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.

Nice 🧹

@FlorianDeconinck
Copy link
Collaborator

Poke @oelbert / @CharlesKrop / @katrinafandrich for reference

@romanc romanc added this pull request to the merge queue Jan 9, 2026
Merged via the queue into NOAA-GFDL:develop with commit 5a6c878 Jan 9, 2026
6 checks passed
@romanc romanc deleted the romanc/deprecate-duplicate-stencil-defn branch January 9, 2026 16:05
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