# System data in different formats in PowerModels.jl

**URL:** <https://discourse.julialang.org/t/system-data-in-different-formats-in-powermodels-jl/67344>\
**Category:** Optimization (Mathematical)\
**Created:** [August 30, 2021, 11:58am UTC](https://discourse.julialang.org/t/system-data-in-different-formats-in-powermodels-jl/67344 "2021-08-30T11:58:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariana](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mariana/32/15064_2.png) [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Post date:** [August 30, 2021, 11:58am UTC](https://discourse.julialang.org/t/system-data-in-different-formats-in-powermodels-jl/67344/1 "2021-08-30T11:58:55Z")

</div>

Hello.

I’m using PowerModels.jl to study different power flow methods. However, for a specific system that I’m studying, I don’t have all the data in a single file. Also, the system’s data files I have are in different formats.

I’d like to know if it is possible to read, for example, only bus data from a file, and only transformer data from a different file, and store these data in a single PowerModels dict.

Thanks!

---

<div class="post-metadata">

**Author:** ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Post date:** [August 30, 2021, 4:41pm UTC](https://discourse.julialang.org/t/system-data-in-different-formats-in-powermodels-jl/67344/2 "2021-08-30T16:41:37Z")

</div>

Hi @Mariana

In theory there is nothing that should stop you from combining data from different sources to make a single data-dict that PowerModels can use. After building the dict you may want to run `correct_network_data!` to check that the Dict you have created meets some basic data consistency requirements assumed by PowerModels.

Getting the data into Julia is an orthogonal challenge. The data parsers (Matpower and PSSE) make a number of validity checks as the read in, which will likely preclude reading incomplete data. You might make your own version of these parsers that are more flexible to suit your needs.

Some other thoughts that come to mind,

- The [Matpower extension](https://lanl-ansi.github.io/PowerModels.jl/stable/network-data/#Working-with-Matpower-Data-Files) feature may help you combine data into a common Matpower file.
- The [PowerSystem](https://github.com/NREL-SIIP/PowerSystems.jl) package may help you combine data from different sources

---

<div class="post-metadata">

**Author:** ![Mariana](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mariana/32/15064_2.png) [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Post date:** [September 7, 2021, 9:14am UTC](https://discourse.julialang.org/t/system-data-in-different-formats-in-powermodels-jl/67344/3 "2021-09-07T09:14:56Z")

</div>

Thanks very much, @ccoffrin !
