More sections need m_def for proper polymorphism
Currently, we only export m_def
in m_to_dict
if the section's definition is a specialisation of the containing sub-sections section. If a special section is contained in a sub-section that uses the special section definition and is then references by a quantity with a more abstract section definition, the archive browser has to use the abstract section definition in the absence of the m_def
pointing to the proper specialised section definition.
This can be reproduced via layer/origin_layer
using the Python ELN example for Sample
.