Skip to content

Commit

Permalink
Removed debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
douweschulte committed Oct 24, 2023
1 parent b8f358b commit 291a152
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/formula.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ impl MolecularFormula {
pub fn most_abundant_mass(&self) -> Option<Mass> {
let mut mass = da(self.additional_mass); // Technically this is wrong, the additional mass is defined to be monoisotopic
for (e, i, n) in &self.elements {
let mam = e.most_abundant_mass(*n, *i)?;
println!(
"{i}{e}{n} => {} ({})",
mam.value,
(e.mass(*i)? * Ratio::new::<r>(f64::from(*n))).value
);
mass += mam;
mass += e.most_abundant_mass(*n, *i)?;
}
Some(mass)
}
Expand Down

0 comments on commit 291a152

Please sign in to comment.