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

Support cesm workflow #131

Merged
merged 11 commits into from
Sep 20, 2024
Merged

Commits on Sep 7, 2024

  1. Include script from I. Carlson

    This is the script that generates a CUPiD config file based on an existing yaml
    file. I'm committing it as it was in Ingrid's cesm2_3_beta17 sandbox, for use
    with CUPiD at hash b402eba; I think it will need to be updated for more recent
    versions.
    mnlevy1981 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    ac076aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b36874 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. Pass commandline arguments instead of using CIME

    generate_cupid_config_file.py now relies on argparse to get a handful of
    commandline arguments instead of importing some CIME functions and determining
    these values on the fly (it'll be easy to set all these arguments when creating
    the template)
    mnlevy1981 committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    97fd4d4 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    a40ef5d View commit details
    Browse the repository at this point in the history
  2. Clean up based on review

    1. Only required command line argument is cesm root directory; also allows
    optional arguments for case directory (default is current dir) and cupid
    example (default is key_metrics)
    2. Now gets case name and short-term archive directory from CESM Case class
    3. Cleaned up comment inserted at top of config.yml
    mnlevy1981 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    1842649 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    910e4c9 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Change more config values

    generate_cupid_config_for_cesm_case.py now updates more global parameters
    (start_date, end_date, climo_nyears, as well as the base_ copies) and the
    time-series end_years. For now these values are hard-coded in with placeholders
    until we can get them from env_cupid.xml
    mnlevy1981 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    1466ad4 View commit details
    Browse the repository at this point in the history
  2. generate_cupid_config... requires --cesm-root

    I thought that not specifying a default value made it required, but really it
    just made the default None (which had all sorts of fun implications in the
    code)
    mnlevy1981 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    a52a042 View commit details
    Browse the repository at this point in the history
  3. Add valid values for --cupid-example

    We don't know the full list of valid values when parsing command line
    arguments, so this check needs to be done in the body of the python script
    mnlevy1981 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    bb3f37d View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Configuration menu
    Copy the full SHA
    0888657 View commit details
    Browse the repository at this point in the history
  2. Note script arguments in generated yaml file

    The header of the YAML file is a little bit bigger; in addition to mentioning
    the file was auto-generated, it includes each of the three arguments
    (cesm_root, case_root, and cupid_example)
    mnlevy1981 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    dba6bea View commit details
    Browse the repository at this point in the history