Skip to content

Commit

Permalink
Update read_from_hdf5.py
Browse files Browse the repository at this point in the history
Decode byte str to str.
  • Loading branch information
stephanmg authored Dec 18, 2024
1 parent 4159d3e commit 0a2d6ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pypesto/store/read_from_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def read(self, objective: ObjectiveBase = None) -> Problem:
problem.x_fixed_vals = [float(val) for val in problem.x_fixed_vals]
problem.x_fixed_indices = [int(ix) for ix in problem.x_fixed_indices]
problem.x_names = [name.decode() for name in problem.x_names]
problem.x_scales = [scale.decode() for scale in problem.x_scales]

return problem

Expand Down

0 comments on commit 0a2d6ea

Please sign in to comment.