Skip to content

Commit

Permalink
Update message
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Oct 24, 2023
1 parent 9a7331e commit da8318a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/load_inputs/load_generators_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,12 @@ end
function validate_newbuild_entries(df::DataFrame)
if any(df.New_Build .== -1)
@error "
When using the updated New_build interface, only {0, 1} are valid.
Entries which previously had New_Build = -1 should be updated to
New_Build = 0, Can_Retire = 0."
One or more resources has New_Build = -1, but the Can_Retire column is present,
indicating that the updated interface should be used.
When using the updated New_Build/Can_Retire interface, only {0, 1} are valid.
Entries which previously had New_Build = -1
(indicating resources which cannot be built nor retired)
should be updated to New_Build = 0, Can_Retire = 0."
error("Invalid New_Build inputs in resource data.")
end
end
Expand Down

0 comments on commit da8318a

Please sign in to comment.