Skip to content

Commit

Permalink
Merge e71ad13 into 8855e17
Browse files Browse the repository at this point in the history
  • Loading branch information
hover2pi committed Mar 18, 2020
2 parents 8855e17 + e71ad13 commit 2e87a34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sedkit/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,17 @@ def __init__(self, **kwargs):
file = resource_filename('sedkit', 'data/dwarf_sequence.txt')

# Replace '...' with NaN
fill_values = [('...', np.nan)]
fill_values = [('...', np.nan), ('....', np.nan), ('.....', np.nan)]

# Initialize Relation object
super().__init__(file, fill_values=fill_values, **kwargs)

# Add numerical spectral type column
self.add_column('spt', [u.specType(i)[0] for i in self.data['SpT']])

# Add J-Ks color column
self.add_column('J-Ks', self.data['J-H'] + self.data['H-Ks'])


class SpectralTypeRadius:
def __init__(self, orders=(5, 3), name='Spectral Type vs. Radius'):
Expand Down

0 comments on commit 2e87a34

Please sign in to comment.