diff --git a/src/depiction/calibration/perform_calibration.py b/src/depiction/calibration/perform_calibration.py index 7881bf0..8b5bf47 100644 --- a/src/depiction/calibration/perform_calibration.py +++ b/src/depiction/calibration/perform_calibration.py @@ -3,7 +3,6 @@ from pathlib import Path from typing import Optional -import h5py import numpy as np import xarray from loguru import logger diff --git a/src/depiction/tools/simulate/generate_synthetic_imzml.py b/src/depiction/tools/simulate/generate_synthetic_imzml.py index 430e7c0..6b5d332 100644 --- a/src/depiction/tools/simulate/generate_synthetic_imzml.py +++ b/src/depiction/tools/simulate/generate_synthetic_imzml.py @@ -52,7 +52,7 @@ def generate_centroided_spectrum( target_mz, target_int = self._generate_isotopic_peaks( mz_arr=target_masses, int_arr=target_intensities, n_isotopes=n_isotopes ) - n_noise_peaks = round((self._mz_max - self._mz_min)) + n_noise_peaks = round(self._mz_max - self._mz_min) noise_mz, noise_int = self._generate_noise_peaks( n=n_noise_peaks, target_mz=target_mz, target_min_distance_mz=0.5 ) diff --git a/tests/unit/clustering/test_maxmin_sampling.py b/tests/unit/clustering/test_maxmin_sampling.py index 326eff9..04a10b5 100644 --- a/tests/unit/clustering/test_maxmin_sampling.py +++ b/tests/unit/clustering/test_maxmin_sampling.py @@ -1,7 +1,7 @@ from __future__ import annotations import pytest import numpy as np -from numpy.testing import assert_array_equal, assert_array_almost_equal +from numpy.testing import assert_array_equal from depiction.clustering.maxmin_sampling import maxmin_sampling