Skip to content

Update benchmark for tracking.py #1525

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

Conversation

Naman-Priyadarshi
Copy link
Contributor

@Naman-Priyadarshi Naman-Priyadarshi commented Aug 14, 2022

  • Closes update benchmarks/tracking.py for SingleAxisTracker deprecation #1508
  • I am familiar with the contributing guidelines
    - [ ] Tests added
    - [ ] Updates entries in docs/sphinx/source/reference for API changes.
  • Adds description and name entries in the appropriate "what's new" file in 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`).
    - [ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Removed time_tracker_singleaxis function from the benchmark file as SingleAxisTracker has been deprecated.

Removed `time_tracker_singleaxis` function from the benchmark file
Updated whatsnew as per community guidelines
@Naman-Priyadarshi Naman-Priyadarshi marked this pull request as ready for review August 14, 2022 19:21
@Naman-Priyadarshi Naman-Priyadarshi changed the title Update tracking.py Update benchmark for tracking.py Aug 14, 2022
@cwhanse cwhanse added this to the 0.9.2 milestone Aug 15, 2022
def time_tracker_singleaxis(self):
with np.errstate(invalid='ignore'):
self.tracker.singleaxis(self.solar_position.apparent_zenith,
self.solar_position.azimuth)
Copy link
Member

Choose a reason for hiding this comment

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

In addition to this benchmark function, the definition of self.tracker on line 20 should also be removed as that's what is actually emitting the deprecation warning, see https://github.com/pvlib/pvlib-python/runs/7828546496?check_suite_focus=true#step:5:189

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you for clarifying, i'll make the changes

@kandersolar kandersolar modified the milestones: 0.9.2, 0.9.3 Aug 19, 2022
@Naman-Priyadarshi Naman-Priyadarshi deleted the Naman-Priyadarshi-bench-track branch August 25, 2022 04:20
@kandersolar kandersolar removed this from the 0.9.3 milestone Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update benchmarks/tracking.py for SingleAxisTracker deprecation
3 participants