File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -422,15 +422,15 @@ def write_monte_carlo(self, cpu_id=None):
422
422
covariances = np .array (self .analysis .mc_covariances )
423
423
424
424
names = np .array (list (bestfits .keys ()))
425
- bestfit_table = np .array ([bestfits [name ][:, 0 ] for name in names ]). T
426
- errors_table = np .array ([bestfits [name ][:, 1 ] for name in names ]). T
427
- covariances = covariances .reshape (bestfit_table .shape [0 ]* len (names ), len (names ))
425
+ bestfit_table = np .array ([bestfits [name ][:, 0 ] for name in names ])
426
+ errors_table = np .array ([bestfits [name ][:, 1 ] for name in names ])
427
+ covariances = covariances .reshape (bestfit_table .shape [1 ]* len (names ), len (names ))
428
428
429
429
# Get the data types for the columns
430
430
max_length = np .max ([len (name ) for name in names ])
431
431
name_format = str (max_length ) + 'A'
432
- fit_format = f'{ bestfit_table .shape [0 ]} D'
433
- cov_format = f'{ covariances .shape [0 ]} D'
432
+ fit_format = f'{ bestfit_table .shape [1 ]} D'
433
+ cov_format = f'{ covariances .shape [1 ]} D'
434
434
435
435
# Create the columns with the bestfit data
436
436
col1 = fits .Column (name = 'names' , format = name_format , array = names )
You can’t perform that action at this time.
0 commit comments