From ba3b038a58898fd53edd95545ea2e9cd15a88a58 Mon Sep 17 00:00:00 2001 From: Andrei Cuceu Date: Fri, 17 Nov 2023 14:52:51 -0500 Subject: [PATCH] Reshape mc covariance --- vega/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vega/output.py b/vega/output.py index c983de1..b71d348 100644 --- a/vega/output.py +++ b/vega/output.py @@ -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])