Skip to content

Commit

Permalink
Fix lds flag in load_resources_data.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Feb 12, 2024
1 parent 3281169 commit a0f6856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/load_inputs/load_resources_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ function check_LDS_applicability(r::AbstractResource)
applicable_resources = Union{Storage, Hydro}
not_set = resource_attribute_not_set()
error_strings = String[]
lds_value = get(r, :LDS, not_set)
lds_value = get(r, :lds, not_set)
# LDS is available onlåy for Hydro and Storage
if !isa(r, applicable_resources) && lds_value > 0
e = string("Resource ", resource_name(r), " has :LDS = ", lds_value, ".\n",
e = string("Resource ", resource_name(r), " has :lds = ", lds_value, ".\n",
"This setting is valid only for resources where the type is one of $applicable_resources.")
push!(error_strings, e)
end
Expand Down

0 comments on commit a0f6856

Please sign in to comment.