Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update parameters.py #1542

Merged
merged 6 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update read_from_hdf5.py
Decode byte str to str.
  • Loading branch information
stephanmg authored Dec 18, 2024
commit 0a2d6eaecb8fd1963326f059cf577cdf1afba6f1
1 change: 1 addition & 0 deletions pypesto/store/read_from_hdf5.py
Original file line number Diff line number Diff line change
@@ -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