Skip to content

Commit

Permalink
fix ep2rad matrix dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoning Wang committed Oct 19, 2023
1 parent 8e2c69b commit 2da54fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frads/ep2rad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2da54fa

Please sign in to comment.