Skip to content

Commit

Permalink
Update parameters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanmg authored Dec 18, 2024
1 parent ba999f6 commit 3578f92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pypesto/visualize/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ def handle_inputs(

# If all the scales are the same, put it in the x_axis_label
if len({x_scale for _, x_scale in x_labels}) == 1:
x_axis_label = "Parameter value (" + x_labels[0][1].decode('utf-8') + ")"
x_axis_label = "Parameter value ("
x_axis_label += isinstance(x_labels[0][1], bytes) and x_labels[0][1].decode('utf-8') or x_labels[0][1]
x_axis_label += ")"
x_labels = [x_name for x_name, _ in x_labels]
else:
x_axis_label = "Parameter value"
Expand Down

0 comments on commit 3578f92

Please sign in to comment.