Skip to content

Commit

Permalink
Cast to numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMantani committed Nov 28, 2024
1 parent 21a362c commit 8290fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smefit/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ def is_to_keep(op1, op2=None):
}
best_sm = np.array(raw_th_data["best_sm"])
if use_theory_covmat:
th_cov = raw_th_data["theory_cov"]
th_cov = np.array(raw_th_data["theory_cov"])
else:
th_cov = np.zeros((best_sm.size, best_sm.size))

# check if scales are present in the theory file
scales = raw_th_data.get("scales", [None] * len(best_sm))
scales = np.array(raw_th_data.get("scales", [None] * len(best_sm)))

return (
best_sm,
Expand Down

0 comments on commit 8290fcc

Please sign in to comment.