diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-04-11 15:57:11 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-04-11 15:57:11 +0200 |
commit | d06012ecb45be9e65a265260d37b1c052320f536 (patch) | |
tree | 5b9e16ed71dd26307c1faa2639bec5ff52f3ea36 /lib/Kratos/DFADriver.pm | |
parent | f8e54de2258d24e107a5df08bdd20c7234312652 (diff) |
lut support
Diffstat (limited to 'lib/Kratos/DFADriver.pm')
-rw-r--r-- | lib/Kratos/DFADriver.pm | 6 |
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} ); + } } } |