Skip to content

Commit

Permalink
renamed frame.rt to frame.rt_in_seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
sander-willems-bruker committed Oct 25, 2024
1 parent cb9f8ba commit 1de3aeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/io/readers/frame_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ fn get_frame_without_data(
let sql_frame = &sql_frames[index];
frame.index = sql_frame.id;
frame.ms_level = MSLevel::read_from_msms_type(sql_frame.msms_type);
frame.rt = sql_frame.rt;
frame.rt_in_seconds = sql_frame.rt;
frame.acquisition_type = acquisition;
frame.intensity_correction_factor = 1.0 / sql_frame.accumulation_time;
if (acquisition == AcquisitionType::DIAPASEF)
Expand Down
2 changes: 1 addition & 1 deletion src/ms_data/frames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Frame {
pub tof_indices: Vec<u32>,
pub intensities: Vec<u32>,
pub index: usize,
pub rt: f64,
pub rt_in_seconds: f64,
pub acquisition_type: AcquisitionType,
pub ms_level: MSLevel,
pub quadrupole_settings: Arc<QuadrupoleSettings>,
Expand Down
8 changes: 4 additions & 4 deletions tests/frame_readers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod tests {
tof_indices: (0..10).collect(),
intensities: (0..10).map(|x| (x + 1) * 2).collect(),
index: 1,
rt: 0.1,
rt_in_seconds: 0.1,
ms_level: MSLevel::MS1,
quadrupole_settings: Arc::new(QuadrupoleSettings::default()),
acquisition_type: AcquisitionType::DDAPASEF,
Expand All @@ -45,7 +45,7 @@ mod tests {
tof_indices: (36..78).collect(),
intensities: (36..78).map(|x| (x + 1) * 2).collect(),
index: 3,
rt: 0.3,
rt_in_seconds: 0.3,
ms_level: MSLevel::MS1,
quadrupole_settings: Arc::new(QuadrupoleSettings::default()),
acquisition_type: AcquisitionType::DDAPASEF,
Expand Down Expand Up @@ -80,7 +80,7 @@ mod tests {
tof_indices: (10..36).collect(),
intensities: (10..36).map(|x| (x + 1) * 2).collect(),
index: 2,
rt: 0.2,
rt_in_seconds: 0.2,
ms_level: MSLevel::MS2,
quadrupole_settings: Arc::new(QuadrupoleSettings::default()),
acquisition_type: AcquisitionType::DDAPASEF,
Expand All @@ -93,7 +93,7 @@ mod tests {
tof_indices: (78..136).collect(),
intensities: (78..136).map(|x| (x + 1) * 2).collect(),
index: 4,
rt: 0.4,
rt_in_seconds: 0.4,
ms_level: MSLevel::MS2,
quadrupole_settings: Arc::new(QuadrupoleSettings::default()),
acquisition_type: AcquisitionType::DDAPASEF,
Expand Down

0 comments on commit 1de3aeb

Please sign in to comment.