ELNAnnotation not working with msg files
Recently, I started using a parser in its "native" way, that is filling archive and child_archives instead of creating raw files with .archive.json extension.
This was a mandatory solution when using HDF5Dataset quantity type.
The classes I use as m_def of these archives contain not only some HDF5Dataset quantity, but also some other quantity with ELN anntotations:
value = Quantity(
type=HDF5Dataset,
unit='watt',
shape=[],
)
c_parameter = Quantity(
type=np.float64,
description='The C parameter of Antoine equation. Temperature units.',
a_eln=ELNAnnotation(
component='NumberEditQuantity',
defaultDisplayUnit='celsius',
),
unit='kelvin',
)
Whenever I fill an editable quantity and save again, the processing goes nuts because I believe all the ELN Annotations are implemented to work with raw files
Am I correct @mnakh?
@mscheidg could we support this in the msg package, too?
There are some subtleties like the RereferenceEditQuantity: should it create a raw file or a msg file and how to decide when one and when the other ?