Skip to content

Commit

Permalink
Update parameters.py (#1542)
Browse files Browse the repository at this point in the history
* Update parameters.py

Fix issue #1535

* Update parameters.py

* Update parameters.py

Linting

* Update parameters.py

Revert changes.

* Update read_from_hdf5.py

Decode byte str to str.
  • Loading branch information
stephanmg authored Jan 8, 2025
1 parent 11caccd commit 1121bcc
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 1121bcc

Please sign in to comment.