@@ -20,13 +20,13 @@ Parsing a .pwf file to Julia dictionary is as simple as:
20
20
using ParserPWF
21
21
22
22
file = " 3bus.pwf"
23
- pwf_dict = parse_pwf (file)
23
+ pwf_dict = parse_file (file)
24
24
```
25
25
26
26
Converting the .pwf file into PowerModels.jl network data dictionary:
27
27
28
28
``` julia
29
- network_data = parse_pwf_to_powermodels (file)
29
+ network_data = parse_file (file; pm = true )
30
30
```
31
31
32
32
Then you are ready to use PowerModels!
@@ -44,7 +44,7 @@ For more information about PowerModels.jl visit the PowerModels [documentation](
44
44
The package parses all available sections into a julia dictionary. Every key represents a .pwf section as shown below:
45
45
46
46
``` julia
47
- julia> ParserPWF. parse_pwf (file)
47
+ julia> ParserPWF. parse_file (file)
48
48
Dict{String, Any} with 6 entries:
49
49
" DLIN" => Dict{String, Any}[Dict (" AGGREGATOR 10" => nothing , " AGGREGATOR 5" => nothing , " AGGR" …
50
50
" name" => " 3bus"
@@ -89,7 +89,7 @@ Dict{String, Any} with 6 entries:
89
89
The package also allow converting .pwf file directly into PowerModels.jl network data structure:
90
90
91
91
```julia
92
- julia> ParserPWF.parse_pwf_to_powermodels (file)
92
+ julia> ParserPWF.parse_file (file; pm = true )
93
93
Dict{String, Any} with 13 entries:
94
94
"bus" => Dict{String, Any}("1"=>Dict{String, Any}("zone"=>1, "bus_i"=>1, "bus_"…
95
95
"source_type" => "pwf"
@@ -126,9 +126,9 @@ There are two main softwares used for parsing PWF files and each one does slight
126
126
127
127
```julia
128
128
129
- julia> data = parse_file(file; software = ANAREDE)
129
+ julia> data = parse_file(file; pm = true, software = ANAREDE)
130
130
131
- julia> data = parse_file(file; software = Organon)
131
+ julia> data = parse_file(file; pm = true, software = Organon)
132
132
```
133
133
134
134
**Additional data inside PWF files**
0 commit comments