Skip to content

Commit e88daa2

Browse files
authored
Merge pull request #506 from NREL/develop
v0.53.2
2 parents fea94dd + 23b4d46 commit e88daa2

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ Classify the change according to the following categories:
2525
### Deprecated
2626
### Removed
2727

28-
## v0.53.0
28+
## v0.53.2
29+
### Fixed
30+
- `PV` `size_class` and cost defaults not updating correctly when both `max_kw` and the site's land or roof space are input
31+
32+
## v0.53.1
2933
### Fixed
3034
- Issue with `CHP` and `PV` cost curves when with-incentives segments is greater than no-incentives segments
3135

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "REopt"
22
uuid = "d36ad4e8-d74a-4f7a-ace1-eaea049febf6"
33
authors = ["Nick Laws", "Hallie Dunham <hallie.dunham@nrel.gov>", "Bill Becker <william.becker@nrel.gov>", "Bhavesh Rathod <bhavesh.rathod@nrel.gov>", "Alex Zolan <alexander.zolan@nrel.gov>", "Amanda Farthing <amanda.farthing@nrel.gov>", "Xiangkun Li <xiangkun.li@nrel.gov>", "An Pham <an.pham@nrel.gov>", "Byron Pullutasig <byron.pullatasig@nrel.gov>"]
4-
version = "0.53.1"
4+
version = "0.53.2"
55

66
[deps]
77
ArchGDAL = "c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3"

src/core/pv.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,19 +420,22 @@ function get_pv_cost_params(;
420420
# Default case: Calculate based on land/roof space available or load
421421
max_kw_for_size_class = max_kw
422422
max_kw_roof, max_kw_ground = 0.0, 0.0
423+
check_for_space_constrained = false
423424
space_constrained = false
424425
if !isnothing(site_roof_squarefeet) && location in ["both", "roof"]
425426
# Calculate size class based on roof space
426427
max_kw_roof = kw_per_square_foot * site_roof_squarefeet
427-
space_constrained = true
428+
check_for_space_constrained = true
428429
end
429430
if !isnothing(site_land_acres) && location in ["both", "ground"]
430431
# Calculate size class based on land space
431432
max_kw_ground = site_land_acres / acres_per_kw
432-
space_constrained = true
433+
check_for_space_constrained = true
433434
end
434-
if space_constrained
435-
max_kw_for_size_class = max_kw_roof + max_kw_ground
435+
max_kw_roof_and_ground = max_kw_roof + max_kw_ground
436+
if check_for_space_constrained && max_kw_roof_and_ground < max_kw_for_size_class
437+
space_constrained = true
438+
max_kw_for_size_class = max_kw_roof_and_ground
436439
end
437440
tech_sizes = [c["tech_sizes_for_cost_curve"] for c in defaults]
438441
# Include both roof and land for size class -> cost determination

0 commit comments

Comments
 (0)