Skip to content

Commit

Permalink
feat: add general read_network function
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlyAL15 committed May 22, 2024
1 parent 13e1e7c commit 3f7a07c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/io/read_network.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function read_network(path::AbstractString)
ext = splitext(path)
if ext == ".m"
return read_matpower(path)
elseif ext == ".raw"
return read_rawgo(path)
end
end

0 comments on commit 3f7a07c

Please sign in to comment.