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
To match the argument type, lphy core does not handle the array of types. For example br = localClock(tree=tree, clades=[node1,node2], cladeRates=[0.4,0.1], rootRate=0.2, includeStem=true);, the java is
But in ArgumentUtils.matchingParameterTypes(List<Argument> arguments, ...), that value type is casted to Object[] as we do not have the TimeTreeNodeArrayValue. This value class has to be in the base, so the SPI for ArrayValue will be the general solution.
Alternatively, the easy treatment is to get the Object[] and cast the component during the for loop, such as :
Object[] clades = (Object[]) params.get(cladeArrayName).value();
for (inti = 0; i < clades.length; i++){
TimeTreeNodeclade = (TimeTreeNode) clades[i];
The text was updated successfully, but these errors were encountered:
To match the argument type, lphy core does not handle the array of types. For example
br = localClock(tree=tree, clades=[node1,node2], cladeRates=[0.4,0.1], rootRate=0.2, includeStem=true);
, the java isBut in
ArgumentUtils.matchingParameterTypes(List<Argument> arguments, ...)
, that value type is casted toObject[]
as we do not have theTimeTreeNodeArrayValue
. This value class has to be in the base, so the SPI for ArrayValue will be the general solution.Alternatively, the easy treatment is to get the
Object[]
and cast the component during thefor
loop, such as :The text was updated successfully, but these errors were encountered: