emod_api.schema.get_schema module

emod_api.schema.get_schema.dtk_to_schema(path_to_binary, path_to_write_schema='schema.json')[source]

Runs /path/to/Eradication –get-schema –schema-path=schema.json and then post-processes the schema into something more useful. Error cases handled: - schema.json file already exists in cwd; does not overwrite. Asks users to move and retry. - Specified binary fails to run to completion. - Specified binary fails to produce a schema.json