diff --git a/crates/sage-cloudpath/src/tdf.rs b/crates/sage-cloudpath/src/tdf.rs index 6a16e69..01d38e5 100644 --- a/crates/sage-cloudpath/src/tdf.rs +++ b/crates/sage-cloudpath/src/tdf.rs @@ -3,8 +3,7 @@ use sage_core::{ mass::Tolerance, spectrum::{Precursor, RawSpectrum, Representation}, }; -use serde::{Deserialize, Serialize}; -use timsrust::readers::SpectrumReaderConfig; +pub use timsrust::readers::SpectrumReaderConfig as BrukerSpectrumProcessor; pub struct TdfReader; @@ -17,7 +16,7 @@ impl TdfReader { ) -> Result, timsrust::TimsRustError> { let spectrum_reader = timsrust::readers::SpectrumReader::build() .with_path(path_name.as_ref()) - .with_config(bruker_spectrum_processor.spectrum_reader_config) + .with_config(bruker_spectrum_processor) .finalize()?; let spectra: Vec = (0..spectrum_reader.len()) .into_par_iter() @@ -67,8 +66,3 @@ impl TdfReader { precursor } } - -#[derive(Clone, Copy, Serialize, Deserialize, Default)] -pub struct BrukerSpectrumProcessor { - pub spectrum_reader_config: SpectrumReaderConfig, -}