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

Fix 2D Gaussian fitting and related title formatting of qlook #198

Merged
merged 5 commits into from
Aug 9, 2024

Conversation

ShinjiFujita
Copy link
Contributor

@ShinjiFujita ShinjiFujita commented Aug 8, 2024

Closes #197.

@astropenguin astropenguin changed the title Update qlook.py (issue197) Fix 2D Gaussian fitting and related title formatting of qlook Aug 8, 2024
Copy link
Member

@astropenguin astropenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick fixing! I would like to propose the following updates.

  • GaussFit_cont_flag: The term "flag" is ambiguous in this context. I think more explicit name (e.g. is_gaussfit_successful) would be nice.
  • try-except block: Newer codes (data[np.isnan(data)] = 0) seem to be overwritten by older ones (data[data != data] = 0.0).
  • Plot title: When Gaussian fit is failed, could you show peak-based pointing offset (like L253, L476 of v2024.8.0)?

@astropenguin astropenguin added feature New feature or request bug Something isn't working and removed feature New feature or request labels Aug 9, 2024
@astropenguin astropenguin added this to the v2024.9 milestone Aug 9, 2024
Copy link
Member

@astropenguin astropenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix. I also quickly fixed the formatting of the plot title when Gaussian fit fails (Maximum → Peak, etc). Now it looks no problem to me, so let me merge the PR.

@astropenguin astropenguin merged commit 43b4efd into main Aug 9, 2024
4 checks passed
@astropenguin astropenguin deleted the issue197 branch August 9, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fix 2D Gaussian fitting and related title formatting of qlook
2 participants