The keys of self.obs and its structures therein are often integers, causing a havoc when i.e. a user (such as cgpm_metamodel in bayeslite) takes that metadata and converts it to JSON then stores it in the bdb. Per the CGPM interface
def to_metadata(self):
"""Return the binary (json-friendly) representation of the CGpm.
so VscGPM is responsible for converting keys to/from strings, not the user.
The keys of
self.obs
and its structures therein are often integers, causing a havoc when i.e. a user (such as cgpm_metamodel in bayeslite) takes that metadata and converts it to JSON then stores it in the bdb. Per the CGPM interfaceso VscGPM is responsible for converting keys to/from strings, not the user.