From 24cd388cdec7fe547ba55ede1210cd8ab7e2d0a7 Mon Sep 17 00:00:00 2001 From: Fernando Cervantes Sanchez Date: Thu, 5 Oct 2023 12:31:07 -0400 Subject: [PATCH] Changed name of sample_images_generator.py to utils.py for clarity --- tests/__init__.py | 1 + tests/test_imageloaders.py | 2 +- tests/test_samplers.py | 2 +- tests/test_zarrdataset.py | 2 +- tests/{sample_images_generator.py => utils.py} | 0 5 files changed, 4 insertions(+), 3 deletions(-) rename tests/{sample_images_generator.py => utils.py} (100%) diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..16281fe 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1 @@ +from .utils import * diff --git a/tests/test_imageloaders.py b/tests/test_imageloaders.py index a32f2df..366861b 100644 --- a/tests/test_imageloaders.py +++ b/tests/test_imageloaders.py @@ -10,7 +10,7 @@ from pathlib import Path import zarr import numpy as np -from sample_images_generator import IMAGE_SPECS, UNSUPPORTED_IMAGE_SPECS +from tests.utils import IMAGE_SPECS, UNSUPPORTED_IMAGE_SPECS @pytest.fixture diff --git a/tests/test_samplers.py b/tests/test_samplers.py index b380a8d..62be237 100644 --- a/tests/test_samplers.py +++ b/tests/test_samplers.py @@ -5,7 +5,7 @@ import operator from skimage import transform -from sample_images_generator import IMAGE_SPECS, MASKABLE_IMAGE_SPECS +from tests.utils import IMAGE_SPECS, MASKABLE_IMAGE_SPECS import zarrdataset as zds import math diff --git a/tests/test_zarrdataset.py b/tests/test_zarrdataset.py index 0e4169d..cfa873f 100644 --- a/tests/test_zarrdataset.py +++ b/tests/test_zarrdataset.py @@ -13,7 +13,7 @@ import tqdm import numpy as np -from sample_images_generator import IMAGE_SPECS +from tests.utils import IMAGE_SPECS import torch from torch.utils.data import DataLoader, ChainDataset diff --git a/tests/sample_images_generator.py b/tests/utils.py similarity index 100% rename from tests/sample_images_generator.py rename to tests/utils.py