Closed cliffckerr closed 7 months ago
Seems like a nicer way to wrap the ScipyDistribution, and we could add checks for initialization and maybe also .ready
. Wondering if we have to wrap each distribution individually or if we'll go down the __getattr__
route as with the previous numpy-based approach? Also, doing so would solidify the disconnection to Scipy's documentation, which feels like a significant tradeoff.
Closed by #392
Modules parse the
pars
dict and anything that is anrv_frozen
object gets converted to aScipyDistribution
instead. However, this only works for things in the top-level ofpars
, and doesn't work for other things (e.g., if you want to get random numbers in an intervention). For example:I'd prefer if
ss.lognorm
etc. threw an error if not initialized with a sim. I can't think of a case where this isn't an error. Otherwise, people can just usesps.lognorm
.