Enable extended target
This commit is contained in:
parent
a55fff0d35
commit
0e5a3f26be
@ -26,7 +26,10 @@ class FileTarget(ATarget):
|
||||
Wavelengths used for binning
|
||||
"""
|
||||
# Create spectral quantity from file
|
||||
sfd = SpectralQty.fromFile(file, u.nm, u.W / (u.m ** 2 * u.nm)).rebin(wl_bins)
|
||||
try:
|
||||
sfd = SpectralQty.fromFile(file, u.nm, u.W / (u.m ** 2 * u.nm)).rebin(wl_bins)
|
||||
except:
|
||||
sfd = SpectralQty.fromFile(file, u.nm, u.W / (u.m ** 2 * u.nm * u.sr)).rebin(wl_bins)
|
||||
# Initialize the super class
|
||||
super().__init__(sfd, wl_bins)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user