esteinig / critter

BEAST models for pathogen transmission dynamics in Python
Apache License 2.0
1 stars 0 forks source link

Model configurations from YAML #10

Open esteinig opened 2 years ago

esteinig commented 2 years ago

Reimplemented YAML model configuration with pydantic - which really is more suitable for this than the base block [#2] implementations. It seems that the pydantic config classes and base blocks should be merged, so that the critter.config.CritterConfig class is not required to translate between them.

Model configs from YAML are great for sharing tempates of specific model configurations - e.g. a sliced sampling proportion birth death skyline model. Itm ight also provide a way forward to implement dynamic configuration of the parameters from the CLI.