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 DycoreState initialization routines to use only GridSizer when possible #92

Merged
merged 15 commits into from
Jan 7, 2022

Conversation

mcgibbon
Copy link
Collaborator

@mcgibbon mcgibbon commented Jan 5, 2022

Purpose

Some factory class methods on DycoreState took in QuantityFactory when they only need a GridSizer, and do their own manual quantity initialization. This PR refactors those call signatures to take in the more minimal GridSizer class.

Code changes:

  • Refactored DycoreState.init_from_storages and DycoreState.init_from_numpy_arrays to take in a GridSizer instead of a QuantityFactory

Checklist

Before submitting this PR, please make sure:

  • You have followed the coding standards guidelines established at Code Review Checklist.
  • Docstrings and type hints are added to new and updated routines, as appropriate
  • All relevant documentation has been updated or added (e.g. README, CONTRIBUTING docs)
  • For each public change and fix in pace-util, HISTORY has been updated
  • Unit tests are added or updated for non-stencil code changes

Base automatically changed from feature/dycore_quantity to main January 6, 2022 00:06
@mcgibbon mcgibbon requested a review from elynnwu January 6, 2022 00:10
Copy link
Collaborator

@elynnwu elynnwu left a comment

Choose a reason for hiding this comment

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

lgtm!

@mcgibbon mcgibbon merged commit cb48188 into main Jan 7, 2022
@mcgibbon mcgibbon deleted the feature/minimize_dycore_state_init_signature branch January 7, 2022 18:02
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