Mauro Rovezzi
Mauro Rovezzi
@vasole the data are stored correctly into the HDF5: ```python import h5py ftmp = "/tmp/testba3k_ofy.h5" with h5py.File(ftmp) as h5: for k, v in h5.items(): print(f"{k}: {type(v[()])}") ``` which gives: ```...
> `h5py` do not allow anymore to read strings transparently. That is why i guess you have this behavior. The way `h5py` reads strings is fine to me and I...
@vallsv thanks for the tip! I did not know that using `[()]` would return a `numpy.str` type. I am using the following workaround now: ```python import tempfile import numpy as...
@vasole @vallsv My final solution to correctly restore `str` and `float` when loading a `dict` with `h5todict` is: ```python import copy import numpy as np def _restore_from_array(dictin): """restore str/float from...
@t20100 thank you very much indeed for your help. Yes, indeed using `asarray=False` solves this issue.
[OT] @kklmn if you need a quick&dirty solution you can use [this simple code](https://github.com/maurov/xraysloth/blob/master/sloth/io/specfile_writer.py).
@newville @BGerwe doing some housekeeping with this issue, as it is relatively simple to solve. I propose to stick with Athena project files only to store/restore the state of a...
@newville thanks for working on these features. I see the plot of the second derivative, but I do not see in the GUI how to select E0 at a fraction...
> @maurov I don't see how the multi-element data is encoded in the data file for your example. Sorry, I forgot to mention to unzip the file first. It is...
> But: I think the slowness could be studied more. On a new-ish laptop, I currently get > > ``` > >>> import time ; t0 = time.time() ; import...