From 93d1f12daea9fff9b4f6a4e364059a5b0cef5dd9 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Thu, 24 Oct 2024 16:11:30 +0200 Subject: [PATCH] move isotope_pattern_matcher.py --- src/depiction/spectrum/matching/__init__.py | 0 .../methods => spectrum/matching}/isotope_pattern_matcher.py | 0 .../spectrum/peak_filtering/filter_by_isotope_pattern.py | 2 +- tests/unit/spectrum/matching/__init__.py | 0 .../matching}/test_isotope_pattern_matcher.py | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/depiction/spectrum/matching/__init__.py rename src/depiction/{calibration/methods => spectrum/matching}/isotope_pattern_matcher.py (100%) create mode 100644 tests/unit/spectrum/matching/__init__.py rename tests/unit/{calibration => spectrum/matching}/test_isotope_pattern_matcher.py (97%) diff --git a/src/depiction/spectrum/matching/__init__.py b/src/depiction/spectrum/matching/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/depiction/calibration/methods/isotope_pattern_matcher.py b/src/depiction/spectrum/matching/isotope_pattern_matcher.py similarity index 100% rename from src/depiction/calibration/methods/isotope_pattern_matcher.py rename to src/depiction/spectrum/matching/isotope_pattern_matcher.py diff --git a/src/depiction/spectrum/peak_filtering/filter_by_isotope_pattern.py b/src/depiction/spectrum/peak_filtering/filter_by_isotope_pattern.py index 8b25e21..fa719d3 100644 --- a/src/depiction/spectrum/peak_filtering/filter_by_isotope_pattern.py +++ b/src/depiction/spectrum/peak_filtering/filter_by_isotope_pattern.py @@ -3,7 +3,7 @@ import numpy as np from numpy.typing import NDArray -from depiction.calibration.methods.isotope_pattern_matcher import IsotopePatternMatcher +from depiction.spectrum.matching.isotope_pattern_matcher import IsotopePatternMatcher @dataclass diff --git a/tests/unit/spectrum/matching/__init__.py b/tests/unit/spectrum/matching/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/unit/calibration/test_isotope_pattern_matcher.py b/tests/unit/spectrum/matching/test_isotope_pattern_matcher.py similarity index 97% rename from tests/unit/calibration/test_isotope_pattern_matcher.py rename to tests/unit/spectrum/matching/test_isotope_pattern_matcher.py index 82faedf..7474bf1 100644 --- a/tests/unit/calibration/test_isotope_pattern_matcher.py +++ b/tests/unit/spectrum/matching/test_isotope_pattern_matcher.py @@ -1,7 +1,7 @@ import numpy as np import pytest -from depiction.calibration.methods.isotope_pattern_matcher import IsotopePatternMatcher +from depiction.spectrum.matching.isotope_pattern_matcher import IsotopePatternMatcher @pytest.fixture()