Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

ketozhang
Copy link
Contributor

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.

@ketozhang ketozhang marked this pull request as ready for review December 14, 2023 00:29
@ebachelet ebachelet merged commit 79daa2e into ebachelet:master Jan 3, 2024
4 checks passed
@ketozhang ketozhang deleted the patch-1 branch January 4, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants