Skip to content

Commit

Permalink
Fix mc mock shape
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicuceu committed Nov 17, 2023
1 parent ba3b038 commit d9571fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vega/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ def write_monte_carlo(self, cpu_id=None):
mocks = self.analysis.mc_mocks
columns = []
for name in mocks.keys():
table = np.array(mocks[name]).T
columns.append(fits.Column(name=name, format=f'{table.shape[0]}D', array=table))
table = np.array(mocks[name])
columns.append(fits.Column(name=name, format=f'{table.shape[1]}D', array=table))

mocks_hdu = fits.BinTableHDU.from_columns(columns)
mocks_hdu.name = 'Mocks'
Expand Down

0 comments on commit d9571fb

Please sign in to comment.