Skip to content

feat: support external weather data in PV simulation - #1

Merged
chenyi6758-source merged 2 commits into
chenyi6758-source:mainfrom
Cyrus-chip:feat/weather-data-input
Oct 13, 2026
Merged

chenyi6758-source merged 2 commits into
chenyi6758-source:mainfrom
Cyrus-chip:feat/weather-data-input

Conversation

@Cyrus-chip

Copy link
Copy Markdown

Summary

  • add an optional weather DataFrame input to simulate_pv_ac
  • support measured or externally simulated ghi, dni, and dhi data
  • accept optional temp_air and wind_speed with transparent defaults
  • normalize timezone-aware and naive timestamps and validate inputs
  • document the new workflow and add regression tests

Why

The clear-sky path remains the reproducible default, but practical PV-storage studies need to use measured or TMY weather without replacing the pvlib modeling chain. This keeps the existing API behavior unchanged while adding a narrow, validated data path.

Validation

  • uv run --python 3.11 --extra test pytest -q — 33 passed
  • python3 -m compileall -q src tests examples
  • git diff --check

Scope

This PR does not resample weather data or change the default synthetic-weather results. The caller remains responsible for supplying data at the desired timestep and with irradiance units in W/m².

@chenyi6758-source
chenyi6758-source merged commit 252fa25 into chenyi6758-source:main Oct 13, 2026
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.

2 participants