SUMMARY labplot2 import float(4) data as double(8) data, which leads to wrong data. importing a float(4) array with 100 elements gives a double(8) array with 50 elements. STEPS TO REPRODUCE 1. Import an hdf5 file with float(4) data stored in. 2. select data 3. import it inside spreadsheet Example: 31.7244 OBSERVED RESULT Previewed data seem good. while imported are completely wrong 9.23366E+09 EXPECTED RESULT 31.7244 SOFTWARE/OS VERSIONS Windows: 10/18363 ADDITIONAL INFORMATION It occurs in both 2.7.0 and nightly(2.8.0)
Same issue on Ubunutu 20.04, version 2.7.0
can you attach a sample hdf5 file with float(4) data? I'm not able to reproduce the problem with my data files.
Created attachment 128282 [details] float_data
Git commit 95013f0b710e99feda95ef8c01d922ffd6c42846 by Stefan Gerlach. Committed on 09/05/2020 at 15:21. Pushed by sgerlach into branch 'master'. [hdf5 import] Fix import of FLOAT(4) data FIXED-IN: 2.8 M +1 -3 src/backend/datasources/filters/HDF5Filter.cpp https://invent.kde.org/kde/labplot/commit/95013f0b710e99feda95ef8c01d922ffd6c42846
(In reply to chinoune.mehdi from comment #0) > ADDITIONAL INFORMATION > It occurs in both 2.7.0 and nightly(2.8.0) Can you please try out the last nightly build and confirm it solves the problem for you?
(In reply to Alexander Semke from comment #5) > (In reply to chinoune.mehdi from comment #0) > > ADDITIONAL INFORMATION > > It occurs in both 2.7.0 and nightly(2.8.0) > Can you please try out the last nightly build and confirm it solves the > problem for you? Tried this morning. Problem solved.