esteinig / critter

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

Distributions #5

Closed esteinig closed 3 years ago

esteinig commented 3 years ago

I figured out a pattern for inheritance on the Distribution class in critter.blocks.distributions that load RealParameter instances on initiation. This way both Distribution and RealParameter identifiers can be set by users (for @ in the BEAST XMLs) while conforming to pydantic.BaseModel inheritance from the Distribution class.