Skip to content

Commit

Permalink
Update load_generators_data.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
fc4uk committed Sep 15, 2023
1 parent 00a990e commit 77a543b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/load_inputs/load_generators_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ function process_piecewisefuelusage!(inputs::Dict, scale_factor)
load_point_mat = extract_matrix_from_dataframe(gen_in, "PWFU_Load_Point_MW")

# check data input
validate_piecewisefuelusage!(heat_rate_mat, load_point_mat)
validate_piecewisefuelusage(heat_rate_mat, load_point_mat)

# determine if a generator contains piecewise fuel usage segment based on non-zero heatrate
gen_in.HAS_PWFU = any(heat_rate_mat .!= 0 , dims = 2)[:]
Expand Down Expand Up @@ -572,7 +572,7 @@ function process_piecewisefuelusage!(inputs::Dict, scale_factor)
end
end

function validate_piecewisefuelusage!(heat_rate_mat, load_point_mat)
function validate_piecewisefuelusage(heat_rate_mat, load_point_mat)
# it's possible to construct piecewise fuel consumption with n of heat rate and n-1 of load point.
# if a user feed n of heat rate and more than n of load point, throw a error message, and then use
# n of heat rate and n-1 load point to construct the piecewise fuel usage fuction
Expand Down

0 comments on commit 77a543b

Please sign in to comment.