Commit 69574d6 1 parent 9e2aedc commit 69574d6 Copy full SHA for 69574d6
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 14
14
from jdaviz .core .marks import PluginLine
15
15
16
16
from astropy .modeling import models
17
- from astropy .nddata import UnknownUncertainty
17
+ from astropy .nddata import StdDevUncertainty , VarianceUncertainty , UnknownUncertainty
18
18
from astropy import units
19
19
from specreduce import tracing
20
20
from specreduce import background
@@ -884,6 +884,10 @@ def export_extract(self, **kwargs):
884
884
if self .ext_type_selected == 'Boxcar' :
885
885
ext = extract .BoxcarExtract (inp_sp2d , trace , width = self .ext_width )
886
886
elif self .ext_type_selected == 'Horne' :
887
+ if inp_sp2d .uncertainty is None :
888
+ inp_sp2d .uncertainty = VarianceUncertainty (np .ones_like (inp_sp2d .data ))
889
+ if not hasattr (inp_sp2d .uncertainty , 'uncertainty_type' ):
890
+ inp_sp2d .uncertainty = StdDevUncertainty (inp_sp2d .uncert )
887
891
ext = extract .HorneExtract (inp_sp2d , trace )
888
892
else :
889
893
raise NotImplementedError (f"extraction type '{ self .ext_type_selected } ' not supported" ) # noqa
You can’t perform that action at this time.
0 commit comments