-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improved benchmark in solarposition.py #1443
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
base: main
Are you sure you want to change the base?
Conversation
Thanks @roger-lcc! Can you take a look at addressing the Stickler CI comments about code formatting? |
Apologize for this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @roger-lcc this is looking pretty good. At the moment I'm not able to try this out locally, but I will do that later today.
def time_ephemeris(self, ndays): | ||
solarposition.ephemeris(self.times, self.lat, self.lon) | ||
# def time_ephemeris(self, ndays): | ||
# solarposition.ephemeris(self.times, self.lat, self.lon) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come these lines are commented out?
|
||
def time_get_solarposition(self, ndays): | ||
solarposition.get_solarposition(self.times_localized, | ||
self.lat, self.lon) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure there's any need to benchmark get_solarposition
-- since it's just a convenience wrapper around the various solar position algorithms, this is more or less a duplicate of the time_spa_python
benchmark.
Is there something changed in |
Ah, sorry for the confusion. It's okay to ignore the |
Thanks for your explanation! Now I have a clear understanding of the situation. Thanks again! |
Why was this not merged and being delayed to further versions are there any issues? |
I think I recall wanting to make some changes to the classification of "slow" versus "fast", but it's been long enough that I forget the details. I need to take another look. The intent is to merge this PR eventually, it just hasn't been a priority. |
docs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).Improved benchmark in solarposition.py
Add
SolarPositionSlow
andSolarPositionFast
class. InSolarPositionSlow
, test functions usingndays=[1, 10, 100]
andtimes_localized
. InSolarPositionFast
, test functions usingndays=[1, 365 * 10, 365 * 100]
andtimes_daily
.