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

Init fixes #284

Merged
merged 3 commits into from
May 1, 2024
Merged

Init fixes #284

merged 3 commits into from
May 1, 2024

Conversation

pmelchior
Copy link
Owner

This PR fixes problems identified in #282 and #283. The main change is that extended source initializations don't run the simple linear solver to get the best spectrum given their own morphology and the observation. Instead, we have been recommending using set_spectrum_to_match, which solves for the best-fit spectrum given all morphologies in the scene. So, it's entirely sufficient, and probably safer in case of close blends, to initialize with the peak pixel.

As for #282, the linear solver now masks redundant components and throws an errors message when the problem occurs, so that the user can e.g. remove that component. This is probably the best we can do without knowing why the problem occurred in the first place.

@pmelchior pmelchior merged commit 2d1f022 into master May 1, 2024
@pmelchior pmelchior deleted the init-fixes branch May 1, 2024 19:07
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.

1 participant