From f9de597ce747df201a5c023616bbfddd257225a8 Mon Sep 17 00:00:00 2001 From: nefrathenrici Date: Wed, 13 Sep 2023 16:10:17 -0700 Subject: [PATCH] format --- src/parameters/create_parameters.jl | 2 +- test/parameter_tests.jl | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/parameters/create_parameters.jl b/src/parameters/create_parameters.jl index 79aa929e1db..4609a1da76a 100644 --- a/src/parameters/create_parameters.jl +++ b/src/parameters/create_parameters.jl @@ -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) diff --git a/test/parameter_tests.jl b/test/parameter_tests.jl index 56096d01611..1c0f1ef06c4 100644 --- a/test/parameter_tests.jl +++ b/test/parameter_tests.jl @@ -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