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
The param_dict argument of TemplateModel.set_parameters(...) has type dict[str, float] while params_dict of mira.modeling.amr.ops.add_transition(...) has type dict[str, dict[str, Any]].
It's just a minor mismatch in interface that tripped me up.
The text was updated successfully, but these errors were encountered:
In this case, I needed to add 6 new parameters and assign values to them. If set_parameters allows creating new parameters, then I could avoid making 6 add_parameter and 1 set_parameters calls. So yes please!
The
param_dict
argument ofTemplateModel.set_parameters(...)
has typedict[str, float]
whileparams_dict
ofmira.modeling.amr.ops.add_transition(...)
has typedict[str, dict[str, Any]]
.It's just a minor mismatch in interface that tripped me up.
The text was updated successfully, but these errors were encountered: