pace-neutrons / Horace

Horace is a suite of programs for the visualization and analysis of large datasets from time-of-flight neutron inelastic scattering spectrometers.
https://pace-neutrons.github.io/Horace/stable/
GNU General Public License v3.0
8 stars 5 forks source link

stored hashes as saved field #1615

Open cmarooney-stfc opened 7 months ago

cmarooney-stfc commented 7 months ago

Hashes were removed from the saved fields as the hash values were not always preserved across save/load, especially across platforms. This PR restores them in what is hoped to be a platform-independent fashion

CM:10.04.24: Running this PR on CI and locally works on Matlab 2019b onwards (at least 2021b) but not on 2018b. The issue appears to be a small change in numerical values ~10^-15 in that earlier version compared with now. We are looking at truncating numerical mantissas, but in the meantime this PR is converted to draft as unusable until the platform dependency is resolved.