Skip to content

Commit

Permalink
Fix a bug in parameter space plot
Browse files Browse the repository at this point in the history
  • Loading branch information
peanutfun committed Nov 28, 2023
1 parent 90f2749 commit 53feef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada/util/calibrate/bayesian_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def plot_single(x, y):
return ax

# Option 0: Only one parameter
params = p_space_df.columns.to_list()
params = p_space_df["Parameters"].columns.to_list()
if len(params) < 2:
return plot_single(x=params[0], y=repeat(0))

Expand Down

0 comments on commit 53feef6

Please sign in to comment.