summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-04-21 14:15:14 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-04-21 14:15:14 +0200
commitbc0bd155d03a8108badd441f8756739565fe300a (patch)
treed9621cb479402d65c514bfc9894f32ce8908dd7f /bin
parentf79cec3648491e7d178b372bcc1beaea9baaadef (diff)
allow setting static params via LUT
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dfatool10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/dfatool b/bin/dfatool
index 6de30d9..75449a3 100755
--- a/bin/dfatool
+++ b/bin/dfatool
@@ -22,6 +22,7 @@ GetOptions(
plot=s
no-cache
no-update
+ param-default=s@
state-duration=i
shunt=f
trace-filter=s@
@@ -31,6 +32,7 @@ GetOptions(
voltage=f
with-lut!
offset=i
+ workload=s
zomg-fasta-nao
}
);
@@ -41,6 +43,8 @@ if ( @ARGV < 2 ) {
@{ $opt{'exclude-states'} }
= split( qr{,}, join( q{,}, @{ $opt{'exclude-states'} // [] } ) );
+@{ $opt{'param-default'} }
+ = split( qr{,}, join( q{,}, @{ $opt{'param-default'} // [] } ) );
my ( $command, $xml_file, @data_files ) = @ARGV;
@@ -60,6 +64,7 @@ my $driver = Kratos::DFADriver->new(
mimosa_offset => $opt{offset} // 130,
mimosa_shunt => $opt{shunt} // 330,
mimosa_voltage => $opt{voltage} // 3.60,
+ param_default => $opt{'param-default'} // [],
trace_filter => $opt{'trace-filter'} // [],
trace_revisit => $opt{'trace-revisit'} // 2,
with_lut => $opt{'with-lut'},
@@ -156,7 +161,10 @@ my %action = (
analyze => sub {
$driver->analyze(@data_files);
$driver->assess_model;
- if ( not $opt{'no-update'} ) {
+ if ( $opt{workload} ) {
+ $driver->assess_workload($opt{workload});
+ }
+ elsif ( not $opt{'no-update'} ) {
$driver->update_model;
}
},