>>> c = sq.norm(mean=sq.norm(mean=0,sd=1), sd=1)
>>> c
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/joel/Library/Python/3.9/lib/python/site-packages/squigglepy/distributions.py", line 40, in __repr__
return str(self)
File "/Users/joel/Library/Python/3.9/lib/python/site-packages/squigglepy/distributions.py", line 588, in __str__
round(self.mean, 2),
TypeError: type NormalDistribution doesn't define __round__ method
>>> c.mean
<Distribution> norm(mean=0, sd=1)
i guess because sampling is determined by the user, after computing everything else, in order to keep squigglepy very fast. i definitely appreciate the speed, but there have been a couple of times when "something like the above example, implemented fast enough for a web app" would be dreamy.
this would work in squiggle
but doesn't work in squigglepy
i guess because sampling is determined by the user, after computing everything else, in order to keep squigglepy very fast. i definitely appreciate the speed, but there have been a couple of times when "something like the above example, implemented fast enough for a web app" would be dreamy.