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

Move parameter constructor to a package extension, use name maps #176

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

nefrathenrici
Copy link
Member

@nefrathenrici nefrathenrici commented Jan 16, 2024

This PR adds a package extension which includes new convenience constructors for ThermodynamicsParameters when CLIMAParameters is loaded.

The constructors are

  • ThermodynamicsParameters(FT)
  • ThermodynamicsParameters(toml_dict)

The core changes are in ext/CreateParametersExt.jl and Project.toml, but I have updated the repo to work with the new parameter constructor.

This PR updates to the newest release of ClimaParameters and incorporates breaking changes.

This PR remove all instances of the parameter_set function and replaces it with the new constructors.
I will also fix up the import statements if people like the core changes of this PR.

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d73a834) 93.02% compared to head (849fb59) 93.06%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #176      +/-   ##
==========================================
+ Coverage   93.02%   93.06%   +0.03%     
==========================================
  Files           9       10       +1     
  Lines        1133     1139       +6     
==========================================
+ Hits         1054     1060       +6     
  Misses         79       79              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nefrathenrici nefrathenrici added the Launch Buildkite Add label to launch Buildkite label Jan 17, 2024
@nefrathenrici nefrathenrici force-pushed the ne/param_extension branch 2 times, most recently from 6581c21 to 1f3c5fb Compare January 17, 2024 18:40
@charleskawczynski charleskawczynski added this pull request to the merge queue Jan 18, 2024
Merged via the queue into main with commit ebf4caa Jan 18, 2024
20 checks passed
@nefrathenrici nefrathenrici mentioned this pull request Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Launch Buildkite Add label to launch Buildkite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants