Skip to content

refactor: deprecate dead code#2766

Open
JoLo90 wants to merge 1 commit into
pvlib:mainfrom
JoLo90:fix_deprecate_dead_code
Open

refactor: deprecate dead code#2766
JoLo90 wants to merge 1 commit into
pvlib:mainfrom
JoLo90:fix_deprecate_dead_code

Conversation

@JoLo90

@JoLo90 JoLo90 commented May 29, 2026

Copy link
Copy Markdown
Contributor

@JoLo90 JoLo90 force-pushed the fix_deprecate_dead_code branch 2 times, most recently from 87a8e84 to 15d9d60 Compare May 29, 2026 14:18
@JoLo90 JoLo90 force-pushed the fix_deprecate_dead_code branch from 15d9d60 to aae7eb7 Compare May 29, 2026 14:27
@JoLo90 JoLo90 marked this pull request as ready for review May 29, 2026 14:33
@cwhanse

cwhanse commented May 29, 2026

Copy link
Copy Markdown
Member

@JoLo90 I think we should consider each of these removals before bundling them all into one PR. Can you open a few more issues to discuss other removals?

@JoLo90

JoLo90 commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

I just separated the issues in #2764, #2767, #2768

@RDaxini RDaxini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Added a suggestion to the whatsnew. I can do a a more technical review later.
Note for future PRs though @JoLo90, please only tick off checklist items when complete. For example, a maintainer has not added any relevant labels or milestone to this PR yet so this should not have been ticked. I will do it now (so no need to remove the tick now). This will just help us organize the work more efficiently and ensure we don't miss anything.
Thanks again for your continued contributions by the way, these are appreciated.

Comment on lines +13 to +21
* The function :py:func:`pvlib.clearsky._is_leap_year` is deprecated and will be
removed in v0.17.0. Use :py:func:`pandas.Timestamp.is_leap_year` instead.
(:issue: `2764`, :pull:`2766`)
* The function :py:func:`pvlib.irradiance._liujordan` is deprecated and will be
removed in v0.17.0. (:issue: `2764`, :pull:`2766`)
* The function :py:func:`pvlib.modelchain.get_orientation` is deprecated and will
be removed in v0.17.0. (:issue: `2764`, :pull:`2766`)
* The method :py:meth:`pvlib.modelchain.ModelChain._prep_inputs_tracking` is
deprecated and will be removed in v0.17.0. (:issue: `2764`, :pull:`2766`)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's clean this up and avoid unnecessary repetition:

Suggested change
* The function :py:func:`pvlib.clearsky._is_leap_year` is deprecated and will be
removed in v0.17.0. Use :py:func:`pandas.Timestamp.is_leap_year` instead.
(:issue: `2764`, :pull:`2766`)
* The function :py:func:`pvlib.irradiance._liujordan` is deprecated and will be
removed in v0.17.0. (:issue: `2764`, :pull:`2766`)
* The function :py:func:`pvlib.modelchain.get_orientation` is deprecated and will
be removed in v0.17.0. (:issue: `2764`, :pull:`2766`)
* The method :py:meth:`pvlib.modelchain.ModelChain._prep_inputs_tracking` is
deprecated and will be removed in v0.17.0. (:issue: `2764`, :pull:`2766`)
* The following functions have been deprecated and will be removed in v0.17.0:
- :py:func:`pvlib.clearsky._is_leap_year` (use :py:func:`pandas.Timestamp.is_leap_year` instead)
(:issue: `2764`, :pull:`2766`)
- :py:func:`pvlib.irradiance._liujordan` (:issue: `2764`, :pull:`2766`)
- :py:func:`pvlib.modelchain.get_orientation` (:issue: `2764`, :pull:`2766`)
- :py:meth:`pvlib.modelchain.ModelChain._prep_inputs_tracking` (:issue: `2764`, :pull:`2766`)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: dead code and wrong parameter in _liujordan function description

3 participants