Skip to content

remove Pvlib that uses 60MB of ram#4027

Merged
springfall2008 merged 1 commit into
mainfrom
fix/memory
Jun 8, 2026
Merged

remove Pvlib that uses 60MB of ram#4027
springfall2008 merged 1 commit into
mainfrom
fix/memory

Conversation

@springfall2008
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 8, 2026 07:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the pvlib dependency (noted as consuming significant RAM) and replaces its limited usage in the Solcast integration with an equivalent inline SAPM/PVWatts cell temperature calculation, keeping solar forecast temperature-derating behavior without requiring pvlib.

Changes:

  • Removed pvlib from requirements.txt.
  • Deleted conditional pvlib import/usage in apps/predbat/solcast.py and standardized on an inline SAPM/PVWatts formula for cell temperature.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
requirements.txt Drops the pvlib dependency from the install set.
apps/predbat/solcast.py Replaces pvlib.temperature.sapm_cell usage with an equivalent inline SAPM/PVWatts computation.

@springfall2008 springfall2008 merged commit 76fb20e into main Jun 8, 2026
2 checks passed
@springfall2008 springfall2008 deleted the fix/memory branch June 8, 2026 07:25
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