Open PavelBal opened 4 years ago
Hum
Parameter values for 'Organism|Weight' does not have the expected number of elements. (Expected 10 vs Actual 2)
Isn't it what that is ?:)
Well, kind of :D May be strange for the casual R-user to see this... And when passing only one value, an error about missing method is thrown:
> myPopulation$setParameterValues("Organism|Weight", 50)
Error in rClr::clrCall(self$ref, "SetValues", parameterPath, values) :
Type: System.MissingMethodException
Message: Could not find a suitable instance method SetValues on type OSPSuite.Core.Domain.Populations.IndividualValuesCache for method parameters String, Double
Method: Void ThrowMissingMethod(System.Type, System.String, System.String, System.Type[])
Stack trace:
at Rclr.ReflectionHelper.ThrowMissingMethod(Type classType, String methodName, String modifier, Type[] types)
at Rclr.ClrFacade.InternalCallInstanceMethod(Object obj, String methodName, Boolean tryUseConverter, Object[] arguments)
Probably because of lacking the possibility to pass arrays of length = 1...
Yes. But a population of one individual... lol. That's not even allowed in PKSim
This is all fixable obviously but in my opinion very low prior as 1/There is a message that comes from CORE 2/Pop with 1 individual does not make sense (in general, I am sure you have a use case)
The number of values must equal the numer of individuals, if I understand it correctly. A check for the correct number should be provided, as now a .net-error is thrown if the number of values does not equal the numer of individuals in the simulation: