From da8318afbe883b12f46a13cf2134303ab97f4045 Mon Sep 17 00:00:00 2001 From: Jacob Schwartz Date: Tue, 24 Oct 2023 13:56:26 -0400 Subject: [PATCH] Update message --- src/load_inputs/load_generators_data.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/load_inputs/load_generators_data.jl b/src/load_inputs/load_generators_data.jl index b16a1ffeaf..7aa6947570 100644 --- a/src/load_inputs/load_generators_data.jl +++ b/src/load_inputs/load_generators_data.jl @@ -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