Skip to content

Commit

Permalink
Correct name bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Dec 3, 2023
1 parent 2b7bce7 commit 91c10d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/model/resources/fusion/fusion_capacity_reserve_margin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ end


# alias for better parallelism in effective_capacity.jl
thermal_fusion_capacity_reserve_margin_adjustment(a,b,c,d,e,f) = fusion_capacity_reserve_margin_adjustment(a,b,c,d,e,f)
thermal_fusion_capacity_reserve_margin_adjustment = fusion_capacity_reserve_margin_adjustment

#################################
# Where the math actually happens
#################################
Expand Down
6 changes: 3 additions & 3 deletions src/model/resources/fusion/fusion_maintenance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ function fusion_maintenance_adjust_parasitic_power!(EP, df::DataFrame)
MAINTENANCE = resources_with_maintenance(df)

Check warning on line 8 in src/model/resources/fusion/fusion_maintenance.jl

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion_maintenance.jl#L7-L8

Added lines #L7 - L8 were not covered by tests

for y in intersect(FUSION, MAINTENANCE)
resource_component(y) = df[y, :Resource]
reactor = FusionReactorData(parasitic_passive_fraction = by_rid(y, :Recirc_Pass),
resource_component = df[y, :Resource]
reactor = FusionReactorData(parasitic_passive_fraction = by_rid(y, :Parasitic_Passive),

Check warning on line 12 in src/model/resources/fusion/fusion_maintenance.jl

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion_maintenance.jl#L10-L12

Added lines #L10 - L12 were not covered by tests
eff_down = 1.0,
component_size = by_rid(y, :Cap_Size),
maintenance_remaining_parasitic_power_fraction = by_rid(y, :Recirc_Pass_Maintenance_Remaining))
maintenance_remaining_parasitic_power_fraction = float(by_rid(y, :Parasitic_Passive_Maintenance_Remaining)))

_fusion_maintenance_parasitic_power_adjustment!(EP, resource_component, reactor)
end

Check warning on line 18 in src/model/resources/fusion/fusion_maintenance.jl

View check run for this annotation

Codecov / codecov/patch

src/model/resources/fusion/fusion_maintenance.jl#L17-L18

Added lines #L17 - L18 were not covered by tests
Expand Down

0 comments on commit 91c10d7

Please sign in to comment.