Skip to content

Commit

Permalink
Fox linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bittremieux committed Nov 18, 2024
1 parent d97e251 commit db5e00f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions casanovo/data/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ def _digest_fasta(
# Calculate the mass of each peptide.
mass_calculator = depthcharge.masses.PeptideMass(residues="massivekb")
peptides["calc_mass"] = (
peptides["peptide"].apply(mass_calculator.mass)
.round(5)
peptides["peptide"].apply(mass_calculator.mass).round(5)
)
# Sort by peptide mass and index by peptide sequence.
peptides.sort_values(
Expand Down

0 comments on commit db5e00f

Please sign in to comment.