Skip to main content

parse_gen_cost_csv

Function parse_gen_cost_csv 

Source
pub fn parse_gen_cost_csv(content: &str) -> Result<Vec<GenCostPatch>>
Expand description

Parse a simple generator cost CSV with required columns gen_index,bus,c2,c1,c0 and optional startup,shutdown.

The parser accepts plain comma separated fields with a header row. Quoted CSV dialect features are intentionally not implemented; this table is numeric.