Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Sep 18, 2024
1 parent 4b23730 commit 6270506
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/depiction/calibration/perform_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from pathlib import Path
from typing import Optional

import h5py
import numpy as np
import xarray
from loguru import logger
Expand Down
2 changes: 1 addition & 1 deletion src/depiction/tools/simulate/generate_synthetic_imzml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/clustering/test_maxmin_sampling.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 6270506

Please sign in to comment.