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

UW-16: As a model user, I want to configure a field table file for the model with a YAML config object. #155

Merged
merged 11 commits into from
Feb 21, 2023

Conversation

WeirAE
Copy link
Contributor

@WeirAE WeirAE commented Feb 17, 2023

Description

Completed the FieldTableConfig method in config.py to take a YAML config object and generate an appropriately formatted field_table file, as well as an associated test. Fixes issue #152

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • pytests in GitHub actions.
  • Tests on Ubuntu & Orion HPC

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
  • My changes need updates to the documentation. I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • Any dependent changes have been merged and published

WeirAE and others added 4 commits February 15, 2023 15:19
check on other platforms and receive feedback
Adds config_field_table to generate a field
table from YAML config. Uses modified Prototype
from uw-203. Will update once 203 PR complete
Config_field_table remapped to existing FieldTableConfig
Work from UW-203 incorporated and placeholders removed
FieldTableConfig now applies a Jinja template to a
loaded YAML config, rather than mapping file dump formats
Debugging ongoing
directly. Edited the reference table to remove
comments and removed unused files. Also
fixed some issues in the YAML test config
@WeirAE
Copy link
Contributor Author

WeirAE commented Feb 17, 2023

Will sync #154 updates first before merging

tests/fixtures/FV3_GFS_v16.yaml Outdated Show resolved Hide resolved
src/uwtools/config.py Outdated Show resolved Hide resolved
FieldTableConfig formatting. Added variable formatting
but should be replaced by proper justified columns eventually
@WeirAE WeirAE mentioned this pull request Feb 20, 2023
@WeirAE WeirAE merged commit 8a778ad into ufs-community:develop Feb 21, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Added functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants