diff --git a/simba/data_processors/cuda/image.py b/simba/data_processors/cuda/image.py index 4a5674d9d..118134367 100644 --- a/simba/data_processors/cuda/image.py +++ b/simba/data_processors/cuda/image.py @@ -25,9 +25,8 @@ from numba import cuda from numba.core.errors import NumbaPerformanceWarning -from simba.data_processors.cuda.utils import (_is_cuda_available, - _cuda_luminance_pixel_to_grey, - _cuda_mse) +from simba.data_processors.cuda.utils import (_cuda_luminance_pixel_to_grey, + _cuda_mse, _is_cuda_available) from simba.mixins.image_mixin import ImageMixin from simba.utils.checks import (check_file_exist_and_readable, check_float, check_if_dir_exists, diff --git a/simba/data_processors/cuda/timeseries.py b/simba/data_processors/cuda/timeseries.py index 2c4b5876f..40ae4f630 100644 --- a/simba/data_processors/cuda/timeseries.py +++ b/simba/data_processors/cuda/timeseries.py @@ -4,8 +4,9 @@ import numpy as np from numba import cuda -from simba.data_processors.cuda.utils import (_is_cuda_available, _cuda_mean, - _cuda_std, _euclid_dist_2d) +from simba.data_processors.cuda.utils import (_cuda_mean, _cuda_std, + _euclid_dist_2d, + _is_cuda_available) from simba.utils.checks import check_float, check_valid_array from simba.utils.enums import Formats from simba.utils.errors import SimBAGPUError diff --git a/simba/mixins/statistics_mixin.py b/simba/mixins/statistics_mixin.py index c0d72cf95..a2a2d7995 100644 --- a/simba/mixins/statistics_mixin.py +++ b/simba/mixins/statistics_mixin.py @@ -17,6 +17,7 @@ from numba import (bool_, float32, float64, int8, jit, njit, prange, typed, types) from scipy import stats +from scipy.spatial.distance import cdist from scipy.stats.distributions import chi2 from sklearn.covariance import EllipticEnvelope from sklearn.ensemble import IsolationForest @@ -30,7 +31,6 @@ from simba.utils.data import bucket_data, fast_mean_rank from simba.utils.enums import Formats, Options from simba.utils.errors import CountError, InvalidInputError -from scipy.spatial.distance import cdist class Statistics(FeatureExtractionMixin): diff --git a/simba/sandbox/bg_remover_cupy.py b/simba/sandbox/bg_remover_cupy.py index b2071be21..6a3a11eab 100644 --- a/simba/sandbox/bg_remover_cupy.py +++ b/simba/sandbox/bg_remover_cupy.py @@ -6,8 +6,8 @@ import numpy as np from simba.data_processors.cuda.image import img_stack_to_grayscale_cupy -from simba.data_processors.cuda.utils import (_is_cuda_available, - _cuda_luminance_pixel_to_grey) +from simba.data_processors.cuda.utils import (_cuda_luminance_pixel_to_grey, + _is_cuda_available) from simba.utils.checks import (check_if_valid_img, check_if_valid_rgb_tuple, check_int, is_video_color) from simba.utils.enums import Formats diff --git a/simba/sandbox/sliding_linearity_index.py b/simba/sandbox/sliding_linearity_index.py index 21f3b2184..3ce29cc23 100644 --- a/simba/sandbox/sliding_linearity_index.py +++ b/simba/sandbox/sliding_linearity_index.py @@ -3,7 +3,8 @@ import numpy as np from numba import cuda -from simba.data_processors.cuda.utils import _is_cuda_available, _euclid_dist_2d +from simba.data_processors.cuda.utils import (_euclid_dist_2d, + _is_cuda_available) from simba.utils.checks import check_float, check_valid_array from simba.utils.enums import Formats from simba.utils.errors import SimBAGPUError