Default values in MI2
It seems that the new metainfo system will in some cases enforce default values for Quantities. E.g. for scalar floating point values the quantity will return 0.0 even if the metainfo was never set. The functionality seems to be located in def __init_metainfo__
of the Quantity
class.
These defaults cause various problems when querying the data (in my case XC_functional_weight == 0.0 if it is not set by the parser, as is very typical). I think that defaults can definitely be used, but only if they are explicitly specified in the metainfo definition.