-
Notifications
You must be signed in to change notification settings - Fork 47
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
visualize.parameters produces error when working with hdf5-stored result.problem.x_scales #1535
Comments
@C-Peiter Could you provide the snippet which produces the error with the .hdf5 file? Then I'll try to reproduce this on my Ubuntu and have a look. (And possibly the error output) |
I attached a result stored in hdf5 and the code to load the result and plot the parameters. I also have a whole PEtab problem for that, if you want. |
Thanks, that should suffice. |
* 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.
Seems like, when I load a result using
result=pypesto.store.read_result("path/to/result.hdf5")
theresult.problem.x_scales
attribute gets loaded as an array of byte-strings. This produces a type error atvisualize/parameters.py:128
when all scales are the same. The error isTypeError: can only concatenate str (not "bytes") to str
and otherwise prints the scale as, for example,b'log10'
.The result file was saved with
OS: Ubuntu 22.04
HDF5 lib on ubuntu: libhdf5-103-1 1.10.7+repack-4ubuntu2
Python version: 3.10.12
pyPESTO version: 0.5.4
h5py version: 3.12.1
The text was updated successfully, but these errors were encountered: