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

avoid setting JD globally? Just find DeltaT and call #1904

Closed
todo bot opened this issue Sep 21, 2021 · 3 comments
Closed

avoid setting JD globally? Just find DeltaT and call #1904

todo bot opened this issue Sep 21, 2021 · 3 comments
Assignees
Milestone

Comments

@todo
Copy link

todo bot commented Sep 21, 2021

// TODO: avoid setting JD globally? Just find DeltaT and call
// return object1->getHeliocentricEclipticPos(JDE).length();
core->setJD(JD);
core->update(0);
return object1->getHeliocentricEclipticPos().length();


This issue was generated by todo based on a TODO comment in 56653c2. It's been assigned to @gzotti because they committed the code.
@todo todo bot added the todo 🗒️ label Sep 21, 2021
@todo todo bot assigned gzotti Sep 21, 2021
@gzotti
Copy link
Member

gzotti commented Sep 22, 2021

@alex-w I just cannot decide at this point whether the side effect of setJD to the whole program wanted or not?

@gzotti gzotti added this to the 0.21.2 milestone Sep 22, 2021
@alex-w
Copy link
Member

alex-w commented Sep 22, 2021

@alex-w I just cannot decide at this point whether the side effect of setJD to the whole program wanted or not?

Probably this method may have once line - return object1->getHeliocentricEclipticPos(JD).length(); - but I fear we may catch a caching issue. Just try change it and compare the data with previous edition.

@gzotti gzotti closed this as completed in 9c6c4c8 Sep 22, 2021
@alex-w
Copy link
Member

alex-w commented Sep 28, 2021

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants