Skip to content

Commit

Permalink
Reshape mc covariance
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicuceu committed Nov 17, 2023
1 parent a9f084d commit ba3b038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vega/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def write_monte_carlo(self, cpu_id=None):
names = np.array(list(bestfits.keys()))
bestfit_table = np.array([bestfits[name][:, 0] for name in names])
errors_table = np.array([bestfits[name][:, 1] for name in names])
covariances = covariances.reshape(bestfit_table.shape[1]*len(names), len(names))
covariances = covariances.reshape(bestfit_table.shape[1]*len(names), len(names)).T

# Get the data types for the columns
max_length = np.max([len(name) for name in names])
Expand Down

0 comments on commit ba3b038

Please sign in to comment.