ebachelet / pyLIMA

GNU General Public License v3.0
31 stars 8 forks source link

noblend option returns variable dfluxdfs referenced before assignment #68

Closed mpgh closed 1 year ago

mpgh commented 1 year ago

When fitting an event via TRF

pspl = PSPL_model.PSPLmodel(test_event, parallax=['None', t0guess], blend_flux_parameter='noblend') pspl.define_model_parameters() fit_tap = TRF_fit.TRFfit(pspl)
[...] fit_tap.fit()

the following issue appears: ... in MLmodel.photometric_model_Jacobian(self, telescope, pyLIMAparameters) 170 dfluxdg = [1] * len(amplification) 172 # breakpoint() --> 173 jacobi = np.c[magnification_jacobian, dfluxdfs, dfluxdg].T 174 return jacobi

UnboundLocalError: local variable 'dfluxdfs' referenced before assignment

ebachelet commented 1 year ago

This is now fixed on 1.9.1 It is not deployed on pip so please close and install the repository (pip install .)