From b82973ca1dac7f3e0e0606c3526a5829db379424 Mon Sep 17 00:00:00 2001 From: mbsantiago Date: Tue, 22 Apr 2025 08:50:43 +0100 Subject: [PATCH] Move array and tensor util test to corresponding folder --- tests/{test_preprocessing => test_utils}/test_arrays.py | 2 +- tests/{test_preprocessing => test_utils}/test_tensors.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/{test_preprocessing => test_utils}/test_arrays.py (88%) rename tests/{test_preprocessing => test_utils}/test_tensors.py (94%) diff --git a/tests/test_preprocessing/test_arrays.py b/tests/test_utils/test_arrays.py similarity index 88% rename from tests/test_preprocessing/test_arrays.py rename to tests/test_utils/test_arrays.py index 8ea13da..a316390 100644 --- a/tests/test_preprocessing/test_arrays.py +++ b/tests/test_utils/test_arrays.py @@ -1,6 +1,6 @@ import numpy as np -from batdetect2.preprocess.arrays import adjust_width, extend_width +from batdetect2.utils.arrays import adjust_width, extend_width def test_extend_width(): diff --git a/tests/test_preprocessing/test_tensors.py b/tests/test_utils/test_tensors.py similarity index 94% rename from tests/test_preprocessing/test_tensors.py rename to tests/test_utils/test_tensors.py index 2115e50..5d82119 100644 --- a/tests/test_preprocessing/test_tensors.py +++ b/tests/test_utils/test_tensors.py @@ -1,7 +1,7 @@ import numpy as np import torch -from batdetect2.preprocess.tensors import adjust_width, make_width_divisible +from batdetect2.utils.tensors import adjust_width, make_width_divisible def test_width_is_divisible_after_adjustment():