Skip to content

Commit

Permalink
Load OrderedDict
Browse files Browse the repository at this point in the history
PR #1103 and #1094 are inconsistent. This uses OrderedDict directly from
ClimaAnalysis
  • Loading branch information
Sbozzolo committed Dec 9, 2024
1 parent 5d528f1 commit 883dc34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions experiments/ClimaEarth/leaderboard/data_sources.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import ClimaAnalysis
import ClimaUtilities.ClimaArtifacts: @clima_artifact
import OrderedCollections: OrderedDict

# Tuple of short names for loading simulation and observational data
sim_obs_short_names_no_pr = [
Expand Down Expand Up @@ -193,7 +192,11 @@ function get_rmse_var_dict()
ClimaAnalysis.add_unit!(rmse_var_rlut, "CliMA", "W m^-2")

# Store the rmse vars in a dictionary
rmse_var_dict = OrderedDict("pr" => rmse_var_pr, "rsut" => rmse_var_rsut, "rlut" => rmse_var_rlut)
rmse_var_dict = ClimaAnalysis.OrderedCollections.OrderedDict(
"pr" => rmse_var_pr,
"rsut" => rmse_var_rsut,
"rlut" => rmse_var_rlut,
)
return rmse_var_dict
end

Expand Down

0 comments on commit 883dc34

Please sign in to comment.