Skip to content

Commit

Permalink
cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Dec 29, 2024
1 parent 1a3744f commit 907e806
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
5 changes: 2 additions & 3 deletions simba/data_processors/cuda/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions simba/data_processors/cuda/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion simba/mixins/statistics_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions simba/sandbox/bg_remover_cupy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion simba/sandbox/sliding_linearity_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 907e806

Please sign in to comment.