Repository navigation
feat(config): map PV arrays with their own production profiles - #4
Merged
Merged
Conversation
A building's PV reached MEME as one pv_supply technology with physics
parameters and no profile. MEME's Calliope and PyPSA targets need a
precomputed profile for a physics technology, and a building can carry
PV on several roof surfaces with different orientations.
techs.pv_arrays lists the arrays of a building, one per surface. Array
$j becomes the series pv_${k}_$j (source inline, unit fraction, the
profile in kW AC per kW DC unchanged) and the supply technology
pv_supply_${k}_$j, whose performance.precomputed names that series. The
technology takes tilt, azimuth and losses as physics parameters and the
shared capacity and cost rules, so cont_energy_cap_max bounds the
array's size. surface_id is not carried. techs.pv_supply is mapped as
before.
A payload without pv_arrays produces the same job as before: the
examples and golden files are unchanged. The reverse restores the
arrays with their profiles. The mapping's version is now 1.3.0.
This was referenced Oct 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5. Stacked on #3.
techs.pv_arrays[$j]becomes the supply technologypv_supply_${k}_$j, with the seriespv_${k}_$jasperformance.precomputed.Tests:
TestMappingPVArrays(forward and reverse),make test,go vet; checked in dry run through MEME/validateand/convertfor Calliope.