Skip to main content

parse_powder_sweep

Function parse_powder_sweep 

Source
pub fn parse_powder_sweep(s: &str) -> Result<Vec<f64>, String>
Expand description

Parse a --sweep START:END:STEP temperature range (display units) for the powder command — ONE parser shared by the native CLI and WASM so their validation cannot drift. Returns the inclusive row temperatures. Guarded: STEP must be positive, END >= START, and the row count is capped so a typo can’t emit an unbounded table.