From 2da54fa2c076d03cfb49c6dc0c51a5860867f95c Mon Sep 17 00:00:00 2001 From: Taoning Wang Date: Thu, 19 Oct 2023 16:00:34 -0700 Subject: [PATCH] fix ep2rad matrix dimension --- frads/ep2rad.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frads/ep2rad.py b/frads/ep2rad.py index a81f9ae..f57caaf 100755 --- a/frads/ep2rad.py +++ b/frads/ep2rad.py @@ -337,7 +337,9 @@ def _parse_construction(self) -> dict: mtx = val["tvb"] for i in range(0, len(mtx["values"]), mtx["nrows"]): nested.append(mtx["values"][i : i + mtx["ncolumns"]]) - self.matrices[key] = {"matrix_data": nested} + self.matrices[key] = { + "matrix_data": [[[ele, ele, ele] for ele in row] for row in nested] + } constructions.update(cfs) return constructions