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

Update notebooks for eta file creations #85

Merged
merged 4 commits into from
May 10, 2024

Conversation

mlee03
Copy link
Collaborator

@mlee03 mlee03 commented May 6, 2024

Description
In this PR, generate_eta_files.ipynb has been added. This notebook will generate the eta79.nc and eta91.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 and generate_eta_file_xarray.ipynb have been removed. Contents of generate_eta_file_xarray.ipynb are contained in the new notebook. And since the files can be generated with generate_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:

  • 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
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included

Copy link
Contributor

@fmalatino fmalatino left a comment

Choose a reason for hiding this comment

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

lgtm

@fmalatino fmalatino requested review from xyuan and oelbert May 7, 2024 14:13
Copy link
Contributor

@oelbert oelbert left a 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?

@mlee03
Copy link
Collaborator Author

mlee03 commented May 7, 2024

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

@fmalatino fmalatino marked this pull request as draft May 7, 2024 17:46
Copy link

@xyuan xyuan left a 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!

@mlee03 mlee03 marked this pull request as ready for review May 8, 2024 17:44
@fmalatino
Copy link
Contributor

I see the PR is re-opened and all tests pass, @mlee03 is this ready to be merged?

@mlee03
Copy link
Collaborator Author

mlee03 commented May 10, 2024

'tis ready

@fmalatino fmalatino merged commit 74ccf31 into NOAA-GFDL:develop May 10, 2024
4 checks passed
fmalatino added a commit that referenced this pull request Jan 6, 2025
* 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]>
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.

4 participants