Skip to content

refactor: avoid quantity.data in favor of direct getter/setter#195

Open
romanc wants to merge 1 commit into
NOAA-GFDL:developfrom
romanc:romanc/avoid-quantity-dot-data
Open

refactor: avoid quantity.data in favor of direct getter/setter#195
romanc wants to merge 1 commit into
NOAA-GFDL:developfrom
romanc:romanc/avoid-quantity-dot-data

Conversation

@romanc

@romanc romanc commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Description

Calling .data on a quanity is deprecated and the functionality is about to be removed in future versions of NDSL. This PR makes a pass over pyFV3 removing replacing references to quantity.data with direct getters and setters.

How Has This Been Tested?

Covered by CI, I guess - at least partly.

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: N/A
  • I have made corresponding changes to the documentation: N/A
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included: N/A
  • Targeted model if this changed was triggered by a model need/shortcoming: N/A

@romanc
romanc requested a review from oelbert July 22, 2026 09:32
@romanc

romanc commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

@twicki can't put you as a reviewer on this one (don't know why, but not in the dropdown 🤷)

@twicki

twicki commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Thanks for the ping, will have a look

Calling `.data` on a quanity is deprecated and the functionality is
about to be removed in future versions of NDSL. This PR makes a pass
over pace removing/replacing references to `quantity.data` with direct
getters and setters.
@romanc
romanc force-pushed the romanc/avoid-quantity-dot-data branch from 1ea15d7 to f5c56f3 Compare July 22, 2026 13:06

@oelbert oelbert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

@oelbert

oelbert commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Happy to merge if @twicki is ok with it

@romanc

romanc commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

Happy to merge if @twicki is ok with it

Thanks 🙏 Tobias will be back tomorrow.

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