-
Notifications
You must be signed in to change notification settings - Fork 17
Removing ndsl.Namelist from PyFV3 #88
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
Merged
jjuyeonkim
merged 26 commits into
NOAA-GFDL:develop
from
jjuyeonkim:20250925_namelist_helper
Oct 21, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
4792227
Initial changes: Namelist replaced by dict
jjuyeonkim 1ac933d
Creating utility function dycore_config_from_f90nml for creating Dyna…
jjuyeonkim 4269fea
Instead of ndsl.Namelist, using f90nml.Namelist + dycore_config_from_…
jjuyeonkim df92423
Removing from_namelist and from_f90nml from DynamicalCoreConfig; Addi…
jjuyeonkim 3b65f73
GEOS wrapper work around
jjuyeonkim d46eefe
Using self.config rather than self.namelist in TranslateDynCore
jjuyeonkim d0fcf5f
Linting and small tweaks
jjuyeonkim 7a81f37
Adding --f90nml_namelist_only flag
jjuyeonkim 9ea785b
more linting + comment revisions
jjuyeonkim 917b4e7
Changed translate test flag: --legacy_namelist_support=False
jjuyeonkim df59228
Using --no_legacy_namelist flag for translate tests
jjuyeonkim b605a35
Adding target_groups to be parameter for dycore_config_from_f90nml
jjuyeonkim 676f7fd
Cleanup: mainly using f90nml.Namelist where appropriate,
jjuyeonkim 7b349da
Simple unit test for namelist_override + comment tweaks
jjuyeonkim e1937a6
Merge branch 'develop' into 20250925_namelist_helper
jjuyeonkim ff7fe0b
Adding from_f90nml back to DynamicalCoreConfig
jjuyeonkim 73265cc
DynamicalCoreConfig from_dict, from_f90nml mods
jjuyeonkim f20d7aa
Merge branch 'develop' into 20250925_namelist_helper
jjuyeonkim 1e3364f
Removing simple unit test
jjuyeonkim bd1c3a9
Adding self.config to TranslateCubedToLatLon
jjuyeonkim ec9acea
Update pyfv3/_config.py
jjuyeonkim a77a7a2
Comment fix
jjuyeonkim ad7f555
Merge branch '20250925_namelist_helper' of github.com:jjuyeonkim/PyFV…
jjuyeonkim 9202d16
Using 'from __future__ import annotations'
jjuyeonkim 8beb1cd
Adding note about fishy behavior in dycore config post init
jjuyeonkim 3e3abda
Adding self.config into translate tests; Moving TranslateDycoreFortra…
jjuyeonkim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| from f90nml import Namelist | ||
|
|
||
| from ndsl import StencilFactory | ||
| from ndsl.stencils.testing import TranslateFortranData2Py | ||
| from pyfv3._config import DynamicalCoreConfig | ||
|
|
||
|
|
||
| class TranslateDycoreFortranData2Py(TranslateFortranData2Py): | ||
| def __init__( | ||
| self, | ||
| grid, | ||
| namelist: Namelist, | ||
| stencil_factory: StencilFactory, | ||
| ): | ||
| super().__init__(grid, stencil_factory) | ||
| self.config = DynamicalCoreConfig.from_f90nml(namelist) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.