emodpy_covid.mid.schema_to_class module

class emodpy_covid.mid.schema_to_class.ReadOnlyDict

Bases: collections.OrderedDict

set_schema(schema)
finalize()
emodpy_covid.mid.schema_to_class.get_default_campaign_event()
emodpy_covid.mid.schema_to_class.get_class_with_defaults(classname, schema_path='schema.json')

Very handy little class – that needs a lot more error handling and robustification – that gets you the default config for an event coordinator or intervention from the schema.