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
7 stars 4 forks source link

allow to overload `to_struct/from_struct` to use `serializable` as basis for `hashable` #1634

Closed abuts closed 4 months ago

abuts commented 5 months ago

current implementation of loadobj in serializable uses private implementation of to_struct_ to build object from a structure.

If one wants to implement transpartent saving/loading of hashes which involves adding information about hashes at the end of the structure conversion process, one needs to use overloaded public instance of to_struct method.

The ticket is to implement these changes

abuts commented 4 months ago

addressed by Re #1635