Closed felix-r closed 1 year ago
I would also like to point out that it is quite critical for me to fix this quickly because I need to re-analyze a lot of old experiments right now before I can go on with new stuff!
The feature data are in the HDF5 file, but dclab is not loading them, because these features are identified as defective. From the dates you pasted, it seems like this is related to the inertia ratio check methods implemented in dclab 0.48.4. So the reason you are experiencing this is the fix for #212.
I would say you have three options now:
Ok, thanks. I'll try version 1 because version 2 is what I am trying to avoid. Also, I don't want to downgrade dclab.
Version 1 worked 🎉
For anyone encountering this issue in the future, this code works to overwrite the "software version" value in the metadata of the rtdc-file:
import h5py
with h5py.File("path\\to\\file.rtdc", 'r+') as h5:
# '2.3.4.54' was the ShapeIn version used in my case. Should be changed accordingly
h5.attrs.modify("setup:software version", "2.3.4.54 | dclab 0.48.4")
OK great, for anyone encountering this issue not understanding what #212 means, please do not apply this code blindly. Your data might be wrong. -> closing
Hi, I have a new problem with reading in inertia ratio features from exported rtdc files. The features
inert_ratio_raw
andinert_ratio_cvx
are present in the datasets but are not available as featuresds.features
. But this is not true for all files. I realized, that the time of file creation has to do with the availability of features after reading them with dclab. Basically for new files it works and for older files there is some problem. I currently use dclab 0.52.0 with python 3.11. Here is some example code to illustrate what I mean (T:
= guck_division2):In the original files, the features are available (
Y:
= HSM):So I guess, it is connected to how these files were exported. I cannot recall which versions of dclab I used to export these files. The export function I use looks like this:
Also, all the other features are there. It only seems to affect inertia ratio. Any idea how to fix this?