Skip to content

Commit

Permalink
Small DensityMap saving fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpparvi committed Aug 30, 2024
1 parent 77fedd7 commit 9585b92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spright/rmestimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ def set_axes(h, xname, yname, x, y):
rdh.header['CREATED'] = Time.now().to_value('fits', 'date')

# Catalog
tbs = Table(data=[self.planet_names.astype('a20'),
self.radius_means, self.radius_uncertainties,
self.mass_means, self.mass_uncertainties,
self.density_means, self.density_uncertainties],
tbs = Table(data=[self.planet_names.astype(str),
self.radius_means.astype('d'), self.radius_uncertainties.astype('d'),
self.mass_means.astype('d'), self.mass_uncertainties.astype('d'),
self.density_means.astype('d'), self.density_uncertainties.astype('d')],
names=['name', 'radius', 'radius_e', 'mass', 'mass_e', 'density', 'density_e'],
units=[None, 'R_Earth', 'R_Earth', 'M_Earth', 'M_Earth', 'g cm^-3', 'g cm^-3'])
cat = pf.BinTableHDU(tbs, name='catalog')
Expand Down

0 comments on commit 9585b92

Please sign in to comment.