Skip to content

Commit

Permalink
prospector
Browse files Browse the repository at this point in the history
  • Loading branch information
niekdejonge committed Jun 24, 2024
1 parent 17a6efe commit 38b1e13
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Run test with coverage
run: pytest --cov --cov-report term --cov-report xml -m "not integration"
- name: Check style against standards using prospector
run: prospector -o grouped -o pylint:pylint-report.txt
run: prospector -o grouped -o pylint:pylint-report.txt --ignore-paths notebooks
- name: Check whether import statements are used consistently
run: isort --check-only --diff .
- name: SonarCloud Scan
Expand Down
1 change: 0 additions & 1 deletion ms2query/benchmarking/collect_test_data_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from matchms.calculate_scores import calculate_scores
from matchms.similarity.CosineGreedy import CosineGreedy
from matchms.similarity.ModifiedCosine import ModifiedCosine
from ms2deepscore import MS2DeepScore
from ms2deepscore.models import SiameseSpectralModel, compute_embedding_array
from spec2vec.vector_operations import cosine_similarity_matrix
from tqdm import tqdm
Expand Down
2 changes: 0 additions & 2 deletions ms2query/ms2library.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ def _get_all_ms2ds_scores(self, query_spectrum: Spectrum
Spectrum for which similarity scores should be calculated for all
spectra in the ms2ds embeddings file.
"""
ms2ds = MS2DeepScore(self.ms2ds_model, progress_bar=False)

query_embeddings = compute_embedding_array(self.ms2ds_model, [query_spectrum])

library_ms2ds_embeddings_numpy = self.ms2ds_embeddings.to_numpy()
Expand Down

0 comments on commit 38b1e13

Please sign in to comment.