Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"

[deps]
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
PGLib = "07a8691f-3d11-4330-951b-3c50f98338be"
PowerModels = "c36e90e8-916a-50a6-bd94-075b64ef4655"
ExaModels = "1037b233-b668-4ce9-9b63-f9f681f55dd2"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
Expand Down
2 changes: 1 addition & 1 deletion src/ExaModelsPower.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ExaModelsPower

import JLD2
import Downloads
import PGLib
import ExaModels: ExaCore, variable, constraint, ExaModel, objective, constraint!, convert_array
import PowerModels

Expand Down
7 changes: 1 addition & 6 deletions src/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ function parse_ac_power_data(filename)
elseif isfile(joinpath(TMPDIR, name) * ".m")
joinpath(TMPDIR, name) * ".m"
else
@info "Downloading $filename"
Downloads.download(
"https://raw.githubusercontent.com/power-grid-lib/pglib-opf/master/$filename",
joinpath(TMPDIR, name * ".m"),
)
joinpath(TMPDIR, name * ".m")
joinpath(PGLib.PGLib_opf, name * ".m")
end
@info "Loading MATPOWER file"
return process_ac_power_data(ff)
Expand Down