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

Move some solar eclipse computations from AstroCalcDialog #3747

Merged
merged 1 commit into from
May 18, 2024

Conversation

10110111
Copy link
Contributor

This reduces the size of AstroCalcDialog.cpp by 15% while localizing much of solar eclipse map generation and some other related computations in another file.

Copy link

github-actions bot commented May 18, 2024

Great PR! Please pay attention to the following items before merging:

Files matching src/**/*.cpp:

  • Are possibly unused includes removed?

This is an automatically generated QA checklist based on modified files.

@alex-w alex-w added this to Needs triage in Astronomical calculations (AstroCalc) via automation May 18, 2024
@alex-w alex-w added this to the 24.2 milestone May 18, 2024
Copy link
Member

@alex-w alex-w left a comment

Choose a reason for hiding this comment

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

Good improvement, thanks!

But please add new file (src/core/SolarEclipseComputer.cpp) into po/stellarium/POTFILES.in also and remove extra empty lines.

Astronomical calculations (AstroCalc) automation moved this from Needs triage to In progress May 18, 2024
@10110111
Copy link
Contributor Author

The empty line at the end? Or is there some more?

@alex-w
Copy link
Member

alex-w commented May 18, 2024

The empty line at the end? Or is there some more?

See CodeFactor report please

Copy link
Member

@gzotti gzotti left a comment

Choose a reason for hiding this comment

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

Yes, good idea to split this huge class.

@10110111
Copy link
Contributor Author

Let's wait until the CI finishes, after which, if successful, I'll merge.

This reduces the size of AstroCalcDialog.cpp by 15% while
localizing much of solar eclipse map generation and some other
related computations in another file.
@10110111 10110111 merged commit 3913599 into Stellarium:master May 18, 2024
13 of 14 checks passed
Astronomical calculations (AstroCalc) automation moved this from In progress to Done May 18, 2024
@10110111 10110111 deleted the eclipse-split-off branch May 18, 2024 14:43
@alex-w alex-w added the state: published The fix has been published for testing in weekly binary package label May 27, 2024
Copy link

Hello @10110111!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: published The fix has been published for testing in weekly binary package
Development

Successfully merging this pull request may close these issues.

None yet

3 participants