Skip to content

Commit

Permalink
consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Oct 24, 2024
1 parent cf05db6 commit 5953952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from depiction.image import MultiChannelImage


class CalibrationMethodGlobalConstantShift(CalibrationMethod):
"""Computes a global constant shift across all spectra and applies it.
class CalibrationMethodConstantGlobalShift(CalibrationMethod):
"""Computes a constant global shift across all spectra and applies it.
This is a very naive method that is mainly used for a fair comparison of non-targeted calibration methods.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/depiction/tools/calibrate/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
CalibrationMethodChemicalPeptideNoise,
)
from depiction.calibration.methods.calibration_method_dummy import CalibrationMethodDummy
from depiction.calibration.methods.calibration_method_global_constant_shift import CalibrationMethodGlobalConstantShift
from depiction.calibration.methods.calibration_method_constant_global_shift import CalibrationMethodConstantGlobalShift
from depiction.calibration.methods.calibration_method_mcc import CalibrationMethodMassClusterCenterModel
from depiction.calibration.methods.calibration_method_regress_shift import CalibrationMethodRegressShift
from depiction.parallel_ops import ParallelConfig
Expand Down Expand Up @@ -56,7 +56,7 @@ def get_calibration_instance(config: CalibrationConfig, mass_list: Path | None):
peak_filtering=peak_filtering,
)
case CalibrationConstantGlobalShiftConfig():
return CalibrationMethodGlobalConstantShift(
return CalibrationMethodConstantGlobalShift(
ref_mz_arr=extract_reference_masses(mass_list),
)
case CalibrationChemicalPeptideNoiseConfig():
Expand Down

0 comments on commit 5953952

Please sign in to comment.