summaryrefslogtreecommitdiff
path: root/lib/Kratos/DFADriver.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-04-11 15:57:11 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-04-11 15:57:11 +0200
commitd06012ecb45be9e65a265260d37b1c052320f536 (patch)
tree5b9e16ed71dd26307c1faa2639bec5ff52f3ea36 /lib/Kratos/DFADriver.pm
parentf8e54de2258d24e107a5df08bdd20c7234312652 (diff)
lut support
Diffstat (limited to 'lib/Kratos/DFADriver.pm')
-rw-r--r--lib/Kratos/DFADriver.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Kratos/DFADriver.pm b/lib/Kratos/DFADriver.pm
index 6acb686..046a013 100644
--- a/lib/Kratos/DFADriver.pm
+++ b/lib/Kratos/DFADriver.pm
@@ -615,6 +615,9 @@ sub update_model {
@{ $state->{power}{function}{$fname}{params} }
);
}
+ if ($self->{with_lut}) {
+ $self->model->set_state_lut( $name, 'power', $state->{power}{median_by_param} );
+ }
}
for my $name (sort keys %{ $self->{log}{aggregate}{transition} }) {
my $transition = $self->{log}{aggregate}{transition}{$name};
@@ -635,6 +638,9 @@ sub update_model {
@{ $transition->{$key}{function}{$fname}{params} }
);
}
+ if ($self->{with_lut}) {
+ $self->model->set_transition_lut( $name, $key, $transition->{$key}{median_by_param} );
+ }
}
}