diff --git a/rustdf/src/sim/handle.rs b/rustdf/src/sim/handle.rs index 329e373a..1d9e5e16 100644 --- a/rustdf/src/sim/handle.rs +++ b/rustdf/src/sim/handle.rs @@ -66,6 +66,7 @@ impl TimsTofSyntheticsDataHandle { )), }; + // if the frame abundance is not available, set it to 0 let frame_abundance: Vec = match serde_json::from_str(&frame_abundance_str) { Ok(value) => value, Err(_e) => vec![0.0; frame_occurrence.len()],