From ac81f1a0d9ddcadc7cf5990919a03652e4bc04ee Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 21 Oct 2020 13:54:40 +0200 Subject: loader: Support new "files" format in MIMOSA files --- lib/loader.py | 6 ++++++ 1 file changed, 6 insertions(+) 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( { -- cgit v1.2.3