CliMA / Thermodynamics.jl

A package containing a library of moist thermodynamic relations.
https://clima.github.io/Thermodynamics.jl/dev/
Apache License 2.0
61 stars 2 forks source link

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

Closed nefrathenrici closed 8 months ago

nefrathenrici commented 8 months ago

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

The constructors are

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.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.