Skip to content

Commit

Permalink
Remove outdated useless test file
Browse files Browse the repository at this point in the history
  • Loading branch information
niekdejonge committed Oct 25, 2024
1 parent b2ce4c0 commit 0fada74
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 81 deletions.
4 changes: 2 additions & 2 deletions tests/test_CalculateScoresBetweenAllIonmodes.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from ms2deepscore.benchmarking.CalculateScoresBetweenAllIonmodes import CalculateScoresBetweenAllIonmodes
from tests.test_user_worfklow import load_processed_spectrums, TEST_RESOURCES_PATH
from tests.create_test_spectra import pesticides_test_spectra, TEST_RESOURCES_PATH


def test_calculate_scores_between_all_ionmodes():
"""Test that all dfs are created and have the correct shape"""
spectra = load_processed_spectrums()
spectra = pesticides_test_spectra()
positive_mode_spectra = [spectrum.set("ionmode", "positive") for spectrum in spectra[:40]]
negative_mode_spectra = [spectrum.set("ionmode", "negative") for spectrum in spectra[40:]]
# Load pretrained model
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ms2deepscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import numpy as np
from ms2deepscore import MS2DeepScore
from ms2deepscore.models import load_model
from tests.test_user_worfklow import load_processed_spectrums
from tests.create_test_spectra import pesticides_test_spectra


TEST_RESOURCES_PATH = Path(__file__).parent / 'resources'


def get_test_ms2deepscore_instance():
"""Load data and models for MS2DeepScore unit tests."""
spectrums = load_processed_spectrums()
spectrums = pesticides_test_spectra()

# Load pretrained model
model_file = TEST_RESOURCES_PATH / "testmodel.pt"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ms2deepscore_evaluated.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
from ms2deepscore import MS2DeepScoreEvaluated
from ms2deepscore.SettingsMS2Deepscore import SettingsEmbeddingEvaluator
from ms2deepscore.models import load_model, LinearModel, EmbeddingEvaluationModel
from tests.test_user_worfklow import load_processed_spectrums
from tests.create_test_spectra import pesticides_test_spectra


TEST_RESOURCES_PATH = Path(__file__).parent / 'resources'


def get_test_ms2deepscore_evaluated_instance():
"""Load data and models for MS2DeepScore unit tests."""
spectrums = load_processed_spectrums()
spectrums = pesticides_test_spectra()

# Load pretrained model
model_file = TEST_RESOURCES_PATH / "testmodel.pt"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ms2deepscoremontecarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from ms2deepscore import MS2DeepScoreMonteCarlo
from ms2deepscore.models import load_model
from tests.test_user_worfklow import load_processed_spectrums
from tests.create_test_spectra import pesticides_test_spectra


TEST_RESOURCES_PATH = Path(__file__).parent / 'resources'
Expand All @@ -14,7 +14,7 @@ def ms2_deep_score_instance():
n_ensembles = 5
average_type = "median"
"""Load data and models for MS2DeepScore unit tests."""
spectrums = load_processed_spectrums()
spectrums = pesticides_test_spectra()

# Load pretrained model
model_file = TEST_RESOURCES_PATH / "testmodel.pt"
Expand Down
73 changes: 0 additions & 73 deletions tests/test_user_worfklow.py

This file was deleted.

0 comments on commit 0fada74

Please sign in to comment.