You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This private function was added before the author (me) of the run_model PR realized that tracking computations are expected to be done prior to instantiating the PVSystem that ModelChain operates on.
ModelChain is clumsy for tracking PV systems. Different issue to improve it.
Second thoughts: let's remove _is_leap_year and keep _prep_inputs_tracking. I'd like to open a new issue to smooth out ModelChain methods for tracking systems, and that function might be needed.
I'll remove the _is_leap_year function from pvlib/clearsky.py since it's unused, and verify there are no references to it elsewhere in the codebase.
I'll also add a test to confirm nothing breaks.
Activity
cwhanse commentedon May 29, 2026
I concur with these removals.
This private function was added before the author (me) of the
run_modelPR realized that tracking computations are expected to be done prior to instantiating thePVSystemthatModelChainoperates on.ModelChainis clumsy for tracking PV systems. Different issue to improve it.cwhanse commentedon Jun 8, 2026
Second thoughts: let's remove
_is_leap_yearand keep_prep_inputs_tracking. I'd like to open a new issue to smooth outModelChainmethods for tracking systems, and that function might be needed.dgowdaan-cmyk commentedon Jul 6, 2026
Hi! I can take this.
I'll remove the
_is_leap_yearfunction frompvlib/clearsky.pysince it's unused, and verify there are no references to it elsewhere in the codebase.I'll also add a test to confirm nothing breaks.
Let me know if you'd like me to proceed.
[-]Dead code[/-][+]Remove dead code clearsky._is_leap_year[/+]cwhanse commentedon Jul 6, 2026
@dgowdaan-cmyk go ahead please. No need to deprecate or to add a new test.
Remove unused clearsky._is_leap_year (closes #2768) (#2813)