ebachelet / pyLIMA

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

Add NotImplementedError for MLfit.model_guess when model type is not supported #77

Closed ketozhang closed 6 months ago

ketozhang commented 7 months ago

This fixes a bug when you attempt fit without setting initial parameters for unsupported ulens models. Currently the behavior will fail with UnboundLocalError (because the variable guess_paczynski_parameters is not set but is later used).

Instead, a NotImplementedError is raised telling the user the ulens model is not supported for guessing init parameters.