Skip to content

172 update to latest version of pvlib#283

Merged
chrisjwin merged 10 commits into
devfrom
172-update-to-latest-version-of-pvlib
Jul 9, 2026
Merged

172 update to latest version of pvlib#283
chrisjwin merged 10 commits into
devfrom
172-update-to-latest-version-of-pvlib

Conversation

@phil-fzj

Copy link
Copy Markdown
Collaborator

Currently pvlib is pinned to 0.9.0

In pvlib 0.10.0 values for module_dc_voltage_at_mpp change. This is due to a fix by pvlib in 0.10.0:

Prevent small negative values of v_oc in pvlib.singlediode._lambertw() which result from accumulated roundoff error. (pvlib/pvlib-python#1780, pvlib/pvlib-python#1673, pvlib/pvlib-python#1782)

That fix changes the single-diode MPP search slightly and shifts v_mp enough to move the interpolated module_dc_voltage_at_mpp regression value.

Other test values in our workflows are not affected.
As a consequence, we will need to adapt the slightly changed test values for module_dc_voltage_at_mpp:

e.g. 37.39738372317519 -> 37.39337385334944

phil-fzj added 6 commits June 25, 2026 10:49
Newer geokit narrows the accepted `points` types for gk.raster.interpolateValues to tuple/ogr.Geometry/Location/list/
LocationSet (numpy arrays and pandas Series are rejected), forwards **kwargs to extractValues in "near" mode, and returns a scalar for a single location. Adapt the reskit call sites accordingly:

- topography: wrap the ndarray points in gk.LocationSet and drop the  dead `_interpolation` parameter (was a no-op in old geokit, and its
  forwarded `interpolate` kwarg is now rejected by extractValues)
- egs: wrap placement lon/lat ndarray in gk.LocationSet
- csp dataset_handler: pass placements.geom as a list (.tolist()) instead of a pandas Series
- logarithmic_profile: np.atleast_1d on the result so single-location  scalar returns don't break item assignment
- workflow_manager: np.atleast_1d on get_scalar_values_from_raster results so single-location placement groups (e.g. CSP per-dataset
  splits) return a 1-D array
…in 0.10.0:

Prevent small negative values of v_oc in pvlib.singlediode._lambertw() which result from accumulated roundoff error. ([GH1780](pvlib/pvlib-python#1780), [GH1673](pvlib/pvlib-python#1673), [GH1782](pvlib/pvlib-python#1782))
@phil-fzj phil-fzj linked an issue Jun 25, 2026 that may be closed by this pull request
@phil-fzj

Copy link
Copy Markdown
Collaborator Author

note that this already includes #281. so #281 should be merged first

@phil-fzj phil-fzj requested a review from chrisjwin June 25, 2026 14:20
@chrisjwin chrisjwin merged commit 1447e1a into dev Jul 9, 2026
24 checks passed
@chrisjwin chrisjwin deleted the 172-update-to-latest-version-of-pvlib branch July 9, 2026 13:33
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.

Update to latest version of pvlib

2 participants