Skip to content

Fix SAMsimPVWattsCommercialExample for PySAM 8 - #231

Merged
brtietz merged 1 commit into
NatLabRockies:patchfrom
Blizzeq:fix/pvwatts-commercial-example-pysam8
Sep 27, 2026
Merged

brtietz merged 1 commit into
NatLabRockies:patchfrom
Blizzeq:fix/pvwatts-commercial-example-pysam8

Conversation

@Blizzeq

@Blizzeq Blizzeq commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #225.

With nlr-pysam 8.0.0, Cashloan requires depr_custom_schedule, which 100kW_PVWatts.json did not have, so the example failed with "depr_custom_schedule not assigned". I added "depr_custom_schedule": [0] to the JSON, the value the PVWattsCommercial Cashloan default uses.

The other new detailed depreciation inputs are optional, so this is the only one needed. The NPV is the same as before on both 8.0.0 and 7.1.1 (253909.04), so the change does not alter the example's results.

@brtietz brtietz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, thanks for fixing!

@brtietz
brtietz merged commit fa7ec34 into NatLabRockies:patch Sep 27, 2026
0 of 3 checks passed
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.

SAMsimPVWattsCommercialExample needs to be updated to PySAM 8

2 participants