Open rwmcintosh opened 1 year ago
@Yuri05 wrote:
Is there an easy way? Am I missing something?
Well, as far as I can see Individual Ids used/generated by the pop runner are always 0,..., N-1 - so an Individual Id can be just used as index when pulling a values array for a parameter? Which is of course error prone and could be improved, but it's how the population runner works at the moment, right?
Yes, we have the correct individualId all over, but in that code there's this code which extracts the parameters from the model:
Which is not as easy because the parameters are pulled from this singular 'organism' which is not scaled. During my initial investigation why the median values were not calculated correctly, this particular PKParameter was actually the same for all individuals. While I can access the scaled body weight parameter easily, getting everything else in the model scaled is not something that's already available.
@msevestre FYI
See the discussion in PR #2413 relating to the calculation of VssPhysChem.