Skip to content

Commit

Permalink
vpc: Fix issue with multiple references for refcorr
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed Mar 6, 2024
1 parent 45f50d7 commit 1b94705
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/tool/npc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1605,10 +1605,11 @@ sub modelfit_setup
my $num = $i + 1;
my $path = "m1/" . $model_sims[$i]->filename;
my $destpath = "m1/${type}_simulation_refcorr.$num.mod";
my $refstr = "";
my @refstrs;
for my $k (keys %refcorr) {
$refstr .= "$k=" . $refcorr{$k};
push @refstrs, "$k=" . $refcorr{$k};
}
my $refstr = join(" ", @refstrs);
PsN::call_pharmpy("data reference $path -o $destpath $refstr");
my $refmodel = model->new(filename => $destpath);
push @refcorr_models, $refmodel;
Expand Down

0 comments on commit 1b94705

Please sign in to comment.