File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ class KCorrectTemplates(SpectrumTemplates):
107
107
'''
108
108
109
109
def __init__ (self , hdu = 1 ):
110
- with resources .files ('skypy' ) / 'data/kcorrect/k_nmf_derived.default.fits' as filename :
111
- with fits .open (filename ) as hdul :
112
- self .templates = hdul [hdu ].data * units .Unit ('erg s-1 cm-2 angstrom-1' )
113
- self .wavelength = hdul [11 ].data * units .Unit ('angstrom' )
114
- self .mass = hdul [16 ].data
115
- self .mremain = hdul [17 ].data
116
- self .mets = hdul [18 ].data
117
- self .mass300 = hdul [19 ].data
118
- self .mass1000 = hdul [20 ].data
110
+ filename = resources .files ('skypy' ) / 'data/kcorrect/k_nmf_derived.default.fits'
111
+ with fits .open (filename ) as hdul :
112
+ self .templates = hdul [hdu ].data * units .Unit ('erg s-1 cm-2 angstrom-1' )
113
+ self .wavelength = hdul [11 ].data * units .Unit ('angstrom' )
114
+ self .mass = hdul [16 ].data
115
+ self .mremain = hdul [17 ].data
116
+ self .mets = hdul [18 ].data
117
+ self .mass300 = hdul [19 ].data
118
+ self .mass1000 = hdul [20 ].data
119
119
120
120
def stellar_mass (self , coefficients , magnitudes , filter ):
121
121
r'''Compute stellar mass from absolute magnitudes in a reference filter.
You can’t perform that action at this time.
0 commit comments