-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update notebooks for eta file creations #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, though I don't know if long-term we need to keep these as ipynb files instead of pure python?
I was just thinking that especially when the goal is just to write out files, perhaps it'd be better to change move/convert the notebook to a python script in this PR. @fmalatino, this PR is not readly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, this pr looks great!
I see the PR is re-opened and all tests pass, @mlee03 is this ready to be merged? |
'tis ready |
* working baroclinic test case example (#81) * fixing dockerfile overriding netcdf, mpi4py, and numpy versions with mutually incompatible versions (#84) * Update notebooks for eta file creations (#85) * Update pace to use python 3.11.9 (#82) * Updated container for Github Action and reusable workflow (#87) * Updated container for Github Action and reusable workflow - Redo (#89) * Matching packages between main and develop branches and removal of outdated pull request template (#86) * Changed workflows to use python 3.11.7, added pytest-subtests to requirments_dev.txt * Updating constraints file * Updating Dockerfile to use 3.11-slim-bookworm base python image * reusable workflow CI - checkout corrrect repository (#90) * pace/tests/main/grid/test_eta.py moved to NDSL/tests/grid/test_eta.py (#92) * Updated README to include directions for generating eta files (#99) * Updated submodules to most recent versions as of 3 Jan 2025 15:35 EST * Updated c5 build script to match new methods --------- Co-authored-by: Oliver Elbert <[email protected]> Co-authored-by: MiKyung Lee <[email protected]> Co-authored-by: mlee03 <[email protected]> Co-authored-by: Xingqiu Yuan <[email protected]>
Description
In this PR,
generate_eta_files.ipynb
has been added. This notebook will generate theeta79.nc
andeta91.nc
files that are used in tests/main. This notebook will be used as part of CI to generate input files on-the-fly.In addition, the notebooks
generate_eta_file_netcdf.ipynb
andgenerate_eta_file_xarray.ipynb
have been removed. Contents ofgenerate_eta_file_xarray.ipynb
are contained in the new notebook. And since the files can be generated withgenerate_eta_files.ipynb
,generate_eta_file_netcdf.ipynb
has been removed.Fixes # (issue)
How Has This Been Tested?
The jupyter notebook was converted to a python script (for convenience) and executed. The contents of the generated netcdf files were checked against the original data in class HybridPressureCoefficients
Checklist: