Skip to content

Commit 7986bae

Browse files
committed
feat: Added flexibility to either read "Up", "UP" or "uP"
1 parent 8cc13d1 commit 7986bae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parsers/power_system_table_data.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,9 @@ function services_csv_parser!(sys::System, data::PowerSystemTableData)
775775
end
776776

777777
function get_reserve_direction(direction::AbstractString)
778-
if direction == "Up"
778+
if lowercase(direction) == "up"
779779
return ReserveUp
780-
elseif direction == "Down"
780+
elseif lowercase(direction) == "down"
781781
return ReserveDown
782782
else
783783
throw(DataFormatError("invalid reserve direction $direction"))

0 commit comments

Comments
 (0)