summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-21 13:54:40 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-21 13:54:40 +0200
commitac81f1a0d9ddcadc7cf5990919a03652e4bc04ee (patch)
tree56ff629b3805b25b154eb2342dfb18d475eec611
parent993a3bae7f5c560d8c9c601c9a6b423e9f507785 (diff)
loader: Support new "files" format in MIMOSA files
-rw-r--r--lib/loader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/loader.py b/lib/loader.py
index c981ef7..3f6b5ec 100644
--- a/lib/loader.py
+++ b/lib/loader.py
@@ -909,6 +909,12 @@ class RawData:
}
)
for repeat_id, mim_file in enumerate(ptalog["files"][j]):
+ # MIMOSA benchmarks always use a single .mim file per benchmark run.
+ # However, depending on the dfatool version used to run the
+ # benchmark, ptalog["files"][j] is either "foo.mim" (before Oct 2020)
+ # or ["foo.mim"] (from Oct 2020 onwards).
+ if type(mim_file) is list:
+ mim_file = mim_file[0]
member = tf.getmember(mim_file)
offline_data.append(
{