pvlib Contributions
PR #2661 – Add simple_efficiency Tests for NumPy Array Inputs
Merged: Feb 2026 · Milestone: v0.15.1
- Added test verifying consistency between scalar and vectorized
input_power evaluation
- Refactored numeric cases into a single
@pytest.mark.parametrize-based test structure
- Aligned tests with API intent by keeping
load_loss and no_load_loss scalar-only
- Updated
v0.15.1 release notes (Testing section) referencing both issue and PR
- Improved maintainability and clarity of transformer numeric tests
View Pull Request
PR #2680 – Fix Swapped Reference Numbering in get_bsrn
Merged: Feb 2026 · Milestone: v0.15.1
- Corrected interchanged reference labels in
pvlib.iotools.get_bsrn docstring
- Ensured consistency with related BSRN utilities (e.g.,
read_bsrn)
- Verified proper rendering in the latest documentation build
- Scoped strictly to documentation — no functional or API changes
- Improved citation clarity in scientific documentation workflows
View Pull Request
PR #2648 – Use ValueError Instead of IndexError in _degrees_to_index
Merged: Feb 2026 · Milestone: v0.15.1
- Replaced incorrect
IndexError with ValueError for invalid latitude/longitude inputs
- Aligned exception semantics with Python and NumPy conventions
- Updated affected unit tests and related clearsky tests accordingly
- Resolved CI failures and ensured full test suite pass before merge
- Improved API correctness without altering functional behavior
View Pull Request
PR #2646 – Fix ZeroDivisionError in transformer.simple_efficiency
Merged: Feb 2026 · Milestone: v0.15.1
- Resolved a
ZeroDivisionError triggered when load_loss = 0 (physically valid transformer edge case)
- Reformulated the quadratic efficiency expression into a numerically stable form
- Preserved existing behavior for
load_loss > 0 to maintain backward compatibility
- Added targeted unit test validating linear-limit behavior:
P_out = P_in − L_no_load × P_nom
- Updated release notes and aligned documentation with maintainer guidance
View Pull Request
PR #2622 – Documentation Fix
Merged: Dec 2025
- Corrected contributor attribution typo in release notes
- Restored broken documentation links
- Maintained release documentation standards
View Pull Request