You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to assign reactive expressions to parameters defined with allow_refs=True in the __init__() of the Parameterized class, similiar to what you can achieve with param.depends(). This is not clearly documented but it seems like it should work and in fact it does for simple examples. But once you start nesting Parameterized classes it stops working.
param 2.1.1, python 3.12.1
I am trying to assign reactive expressions to parameters defined with
allow_refs=True
in the__init__()
of the Parameterized class, similiar to what you can achieve with param.depends(). This is not clearly documented but it seems like it should work and in fact it does for simple examples. But once you start nesting Parameterized classes it stops working.This works:
We get sv.f = 2.0 as expected. So far so good.
Now we add a level of hierarchy:
We get ip.const3.i = 50 as expected (40 + 10).
But ip.const3.f is 0.1, but I expected it to be 5.0, i.e. 50 / 10.
Seems like a bug?
The text was updated successfully, but these errors were encountered: