From 5953952a0870dbcc6d14c031de34a1891364acc1 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Thu, 24 Oct 2024 16:28:34 +0200 Subject: [PATCH] consistent naming --- ...t_shift.py => calibration_method_constant_global_shift.py} | 4 ++-- src/depiction/tools/calibrate/calibrate.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/depiction/calibration/methods/{calibration_method_global_constant_shift.py => calibration_method_constant_global_shift.py} (95%) diff --git a/src/depiction/calibration/methods/calibration_method_global_constant_shift.py b/src/depiction/calibration/methods/calibration_method_constant_global_shift.py similarity index 95% rename from src/depiction/calibration/methods/calibration_method_global_constant_shift.py rename to src/depiction/calibration/methods/calibration_method_constant_global_shift.py index 4431995..27af4f0 100644 --- a/src/depiction/calibration/methods/calibration_method_global_constant_shift.py +++ b/src/depiction/calibration/methods/calibration_method_constant_global_shift.py @@ -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. """ diff --git a/src/depiction/tools/calibrate/calibrate.py b/src/depiction/tools/calibrate/calibrate.py index 1fb069a..c1523af 100644 --- a/src/depiction/tools/calibrate/calibrate.py +++ b/src/depiction/tools/calibrate/calibrate.py @@ -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 @@ -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():