Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 1d43c86c authored by usov_i's avatar usov_i
Browse files

Fix UB matrix read

parent cde2aa11
No related branches found
No related tags found
No related merge requests found
import os
import re
from ast import literal_eval
from collections import defaultdict
import numpy as np
......@@ -120,7 +121,7 @@ def parse_1D(fileobj, data_type):
elif variable in META_UB_MATRIX:
if variable == "UB":
metadata["ub"] = np.array(value)
metadata["ub"] = np.array(literal_eval(value)).reshape(3, 3)
else:
if "ub" not in metadata:
metadata["ub"] = np.zeros((3, 3))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment