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.
I figured out a pattern for inheritance on the
Distribution
class incritter.blocks.distributions
that loadRealParameter
instances on initiation. This way bothDistribution
andRealParameter
identifiers can be set by users (for@
in the BEAST XMLs) while conforming topydantic.BaseModel
inheritance from theDistribution
class.