0.2.0 (February 14, 2024)#

Breaking Changes#

  • Updated function infer_orientation_fit_pvwatts() to more closely align with the PVWatts v5 methodology. This includes incorporating relative airmass and extraterrestrial irradiance into the Perez total irradiance model, accounting for array incidence loss (IAM), and including losses in the PVWatts inverter model. Additionally, added optional arguments for bounding the azimuth range in during least squares optimization. (GH147, GH180)

  • Updated function shifts_ruptures() to align with the methodology tested and reported on at PVRW 2023 (“Survey of Time Shift Detection Algorithms for Measured PV Data”). This includes converting the changepoint detection algorithm from Pelt to Binary Segmentation (which runs much faster), and performing additional processing to each detected segment to remove outliers and filter by a quantile cutoff instead of the original rounding technique. (GH197)

Enhancements#

  • Added function get_sunrise() for calculating the daily sunrise datetimes for a time series, based on the power_or_irradiance() day/night mask output. (GH187)

  • Added function get_sunset() for calculating the daily sunset datetimes for a time series, based on the power_or_irradiance() day/night mask output. (GH187)

  • Updated function power_or_irradiance() to be more performant by vectorization; the original logic was using a lambda call that was slowing the function speed down considerably. This update resulted in a ~50X speedup. (GH186)

Bug Fixes#

  • pvanalytics.__version__ now correctly reports the version string instead of raising AttributeError. (GH181)

  • Compatibility with pandas 2.0.0 (GH185) and future versions of pandas (GH203)

  • Compatibility with scipy 1.11 (GH196)

  • Updated function trim() to handle pandas 2.0.0 update for tz-aware timeseries (GH206)

Requirements#

  • Advance minimum pvlib to 0.9.4, numpy to 0.16.0, pandas to 1.0.0, and scipy to 1.6.0. (GH179, GH185)

Documentation#

  • Online docs now use pydata-sphinx-theme instead of the built-in alabaster theme. (GH176, GH178)

  • Added PVFleets QA pipeline examples for checking temperature, irradiance, and power streams. (GH201, GH202)

  • Added a gallery page for shifts_ruptures(). (GH192)

Testing#

  • Added testing for python 3.11 and 3.12. (GH189, GH204)

Contributors#