lanl-ansi / GasModels.jl

A Julia/JuMP Package for Gas Network Optimization
https://lanl-ansi.github.io/GasModels.jl/latest/
Other
65 stars 16 forks source link

Cast inputs in the MATGAS parser to the correct type #211

Open tasseff opened 4 years ago

tasseff commented 4 years ago

For example, I was running into an issue where base_pressure was being parsed as an integer. Wrapping the parsing with casts like

case["base_pressure"] = Float64(matlab_data["mgc.base_pressure"])

should correct this.

ccoffrin commented 4 years ago

I would expect this to be addressed by the generic Matlab parser. Maybe that parser needs a new feature to support specifying types for constant values?