Skip to content

Commit

Permalink
fixed thrown error on emply frame abundance unwrap for sim
Browse files Browse the repository at this point in the history
  • Loading branch information
theGreatHerrLebert committed Dec 20, 2024
1 parent 42465ab commit 21c3a0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rustdf/src/sim/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl TimsTofSyntheticsDataHandle {
)),
};

// if the frame abundance is not available, set it to 0
let frame_abundance: Vec<f32> = match serde_json::from_str(&frame_abundance_str) {
Ok(value) => value,
Err(_e) => vec![0.0; frame_occurrence.len()],
Expand Down

0 comments on commit 21c3a0f

Please sign in to comment.