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

Remove deprecated basic_chain method #1862

Merged
merged 7 commits into from
May 26, 2024

Conversation

AdamRJensen
Copy link
Member

  • [ ] Closes #xxxx
  • I am familiar with the contributing guidelines
  • Tests added (REMOVED)
  • Updates entries in docs/sphinx/source/reference for API changes.
  • Adds (REMOVES) 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.

I stumbled upon the basic_chain method, which has been deprecated since 0.9.1, hence it seemed time to do a cleanup and remove it entirely.

Perhaps it is preferred to wait until a major release?

@AdamRJensen AdamRJensen added this to the v0.10.2 milestone Sep 16, 2023
@kandersolar
Copy link
Member

Perhaps it is preferred to wait until a major release?

Yes, regardless of how long it's been since the deprecation was put in place, I think we should not remove functionality in minor releases.

@kandersolar kandersolar modified the milestones: v0.10.2, 0.11.0 Sep 17, 2023
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

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

There is a comment mentioning basic_chain on line 44 in modelchain.py that could be edited as well :)

docs/sphinx/source/whatsnew/v0.11.0.rst Outdated Show resolved Hide resolved
Copy link
Member

@wholmgren wholmgren left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning up this early experiment @AdamRJensen.

As an aside, here's a link to another, not quite as early experiment using dask and basic chain: wholmgren/pvlib-python mcdask. As we remove this code, just wanting to document that there is unexplored potential using model chain functions instead of the bloated classes.

@AdamRJensen AdamRJensen merged commit 07d5c9f into pvlib:main May 26, 2024
30 checks passed
@AdamRJensen AdamRJensen deleted the remove_basic_chain branch May 26, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants