summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-04-01 10:38:55 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-04-01 10:38:55 +0200
commitd29b176cb372405d92a37b7fe68b2b4b01facce8 (patch)
tree52e07d8a50769e7e1c56f7fd974e46e200f761be /lib
parent97d4e1a3c5fce0459d227f4980fbe5ca7e29db4a (diff)
--export-pgf-unparam: also export argument values
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/cli.py b/lib/cli.py
index fe0a5b3..b6ccbc2 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -168,7 +168,15 @@ def export_pgf_unparam(model, pgf_prefix):
for name in model.names:
for attribute in model.attributes(name):
with open(f"{pgf_prefix}{name}-{attribute}.txt", "w") as f:
- print("measurement value " + " ".join(model.parameters), file=f)
+ print(
+ "measurement value "
+ + " ".join(model.parameters)
+ + " "
+ + " ".join(
+ map(lambda x: f"arg{x}", range(model._num_args.get(name, 0)))
+ ),
+ file=f,
+ )
for i, value in enumerate(model.attr_by_name[name][attribute].data):
parameters = list()
for param in model.attr_by_name[name][attribute].param_values[i]: