if varname not in dims:
if len(vals.shape) == 1:
vals = np.expand_dims(vals, axis=1)
vals = np.swapaxes(vals, 0, 1)
shape_len = len(vals.shape)
if shape_len == 2:
dims[varname] = []
else:
After Change
dims = {}
for varname, dim in zip(obj.sim["pars_oi"], obj.sim["dims_oi"]):
if varname not in dims:
if varname == "lp__":
continue
dims[varname] = [
"{}_dim_{}".format(varname, idx)
for idx in range(1, len(dim)+1)
]