Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Sep 13, 2023
1 parent 3c8fe8a commit f9de597
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/parameters/create_parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function create_climaatmos_parameter_set(
rrtmgp_params = rrtmgp_params,
surface_fluxes_params = surf_flux_params,
turbconv_params = tc_params,
pairs...
pairs...,
)
# logfilepath = joinpath(@__DIR__, "logfilepath_$FT.toml")
# CP.log_parameter_information(toml_dict, logfilepath)
Expand Down
10 changes: 7 additions & 3 deletions test/parameter_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ end
@testset "Test unique aliases" begin
config_dict = Dict("toml" => ["parameter_tests.toml"])
config = CA.AtmosConfig(; config_dict)
@test_throws ErrorException CP.get_parameter_values!(config.toml_dict, ["same_alias"])
@test_throws ErrorException CP.get_parameter_values!(
config.toml_dict,
["same_alias"],
)
end

@testset "Test all parameter tomls in toml/" begin
toml_path = joinpath("..", "toml")
for toml in readdir(toml_path)
config_dict = Dict("toml" => [joinpath(toml_path, toml)])
config = CA.AtmosConfig(;config_dict);
config = CA.AtmosConfig(; config_dict)
# Ensure that there are no errors
@test CA.create_parameter_set(config) isa CA.Parameters.ClimaAtmosParameters
@test CA.create_parameter_set(config) isa
CA.Parameters.ClimaAtmosParameters
end
end

0 comments on commit f9de597

Please sign in to comment.