diff --git a/measure_extinction/utils/fit_model.py b/measure_extinction/utils/fit_model.py index 6967d77..1911b68 100755 --- a/measure_extinction/utils/fit_model.py +++ b/measure_extinction/utils/fit_model.py @@ -70,6 +70,7 @@ def lnlike(self, params, obsdata, modeldata): fits the model. Parameters + `` ---------- params : floats parameters of the model @@ -99,10 +100,12 @@ def lnlike(self, params, obsdata, modeldata): gvals = (self.weights[cspec] > 0) & (np.isfinite(hi_ext_modsed[cspec])) chiarr = np.square( ( - obsdata.data[cspec].fluxes[gvals].value - - (hi_ext_modsed[cspec][gvals] * (norm_data / norm_model)) + ( + obsdata.data[cspec].fluxes[gvals].value + - (hi_ext_modsed[cspec][gvals] * (norm_data / norm_model)) + ) + * self.weights[cspec][gvals] ) - * self.weights[cspec][gvals] ) lnl += -0.5 * np.sum(chiarr) diff --git a/measure_extinction/utils/make_all_tlusty_obsdata.py b/measure_extinction/utils/make_all_tlusty_obsdata.py index 3875c22..066b13d 100644 --- a/measure_extinction/utils/make_all_tlusty_obsdata.py +++ b/measure_extinction/utils/make_all_tlusty_obsdata.py @@ -80,7 +80,7 @@ def decode_params_wd(filename): model_params["Z"] = 1.0 # ratio to solar if model_params["Teff"] < 10000.0: - model_params["Teff"] *= 1000.0 + model_params["Teff"] *= 100.0 return model_params