Skip to content

Commit

Permalink
Bug fix for mean climate metrics plot function
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangshixuan1987 committed Oct 30, 2024
1 parent a122380 commit 8546e63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Empty file modified zppy/templates/pcmdi_diags/derived_variable.json
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion zppy/templates/pcmdi_diags/mean_climate_plot_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def load_cmip_metrics_data(cmip_file):
# move highlight_models to the end
for model in highlight_models:
idxs = df[df.iloc[:, 0] == model].index
cmip_models.remove(model)
cmip_models.append(model)
for idx in idxs:
df = shift_row_to_bottom(df, idx)
cmip_lib.df_dict[stat][season][region] = df
Expand Down Expand Up @@ -623,7 +625,7 @@ def mean_climate_metrics_plot(parameter):
highlight_models,
file_template,
figure_template,
outdir,
ptrait_fig_dir,
data_version=None,
watermark=False,
)
Expand Down

0 comments on commit 8546e63

Please sign in to comment.