Skip to content

Commit c980b22

Browse files
authored
Merge pull request #5 from LAMPSPUC/develop
Add CI & test actions
2 parents 89ab0ea + e56474a commit c980b22

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Parsing a .pwf file to Julia dictionary is as simple as:
2020
using ParserPWF
2121

2222
file = "3bus.pwf"
23-
pwf_dict = parse_pwf(file)
23+
pwf_dict = parse_file(file)
2424
```
2525

2626
Converting the .pwf file into PowerModels.jl network data dictionary:
2727

2828
```julia
29-
network_data = parse_pwf_to_powermodels(file)
29+
network_data = parse_file(file; pm = true)
3030
```
3131

3232
Then you are ready to use PowerModels!
@@ -44,7 +44,7 @@ For more information about PowerModels.jl visit the PowerModels [documentation](
4444
The package parses all available sections into a julia dictionary. Every key represents a .pwf section as shown below:
4545

4646
```julia
47-
julia> ParserPWF.parse_pwf(file)
47+
julia> ParserPWF.parse_file(file)
4848
Dict{String, Any} with 6 entries:
4949
"DLIN" => Dict{String, Any}[Dict("AGGREGATOR 10"=>nothing, "AGGREGATOR 5"=>nothing, "AGGR"
5050
"name" => "3bus"
@@ -89,7 +89,7 @@ Dict{String, Any} with 6 entries:
8989
The package also allow converting .pwf file directly into PowerModels.jl network data structure:
9090
9191
```julia
92-
julia> ParserPWF.parse_pwf_to_powermodels(file)
92+
julia> ParserPWF.parse_file(file; pm = true)
9393
Dict{String, Any} with 13 entries:
9494
"bus" => Dict{String, Any}("1"=>Dict{String, Any}("zone"=>1, "bus_i"=>1, "bus_"…
9595
"source_type" => "pwf"
@@ -126,9 +126,9 @@ There are two main softwares used for parsing PWF files and each one does slight
126126
127127
```julia
128128
129-
julia> data = parse_file(file; software = ANAREDE)
129+
julia> data = parse_file(file; pm = true, software = ANAREDE)
130130
131-
julia> data = parse_file(file; software = Organon)
131+
julia> data = parse_file(file; pm = true, software = Organon)
132132
```
133133
134134
**Additional data inside PWF files**

src/ParserPWF.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ function parse_file(io::IO; validate::Bool=true, software = ANAREDE, pm::Bool =
3030
pm ? parse_pwf_to_powermodels(io, validate = validate, software = software, add_control_data = add_control_data) : parse_pwf(filename)
3131
end
3232

33-
export parse_file
33+
export parse_file, ANAREDE, Organon
3434

3535
end # end module

0 commit comments

Comments
 (0)