From 3378e4487fa6aac0f2f904de7b335f05f7c86b0e Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Wed, 27 Sep 2023 12:51:14 +0100 Subject: [PATCH] remove * import from tests --- Wrappers/Python/test/test_hdf5.py | 4 ++-- Wrappers/Python/test/test_io.py | 2 +- Wrappers/Python/test/test_resample_readers.py | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Wrappers/Python/test/test_hdf5.py b/Wrappers/Python/test/test_hdf5.py index 0beddd6d..b9de80af 100644 --- a/Wrappers/Python/test/test_hdf5.py +++ b/Wrappers/Python/test/test_hdf5.py @@ -4,8 +4,8 @@ import h5py import numpy as np import vtk -from ccpi.viewer.utils.conversion import * -from ccpi.viewer.utils.hdf5_io import (HDF5Reader, HDF5SubsetReader, write_image_data_to_hdf5) +from ccpi.viewer.utils.conversion import Converter, calculate_target_downsample_shape, cilHDF5CroppedReader, cilHDF5ResampleReader +from ccpi.viewer.utils.hdf5_io import (HDF5Reader, HDF5SubsetReader, write_image_data_to_hdf5) class TestHDF5IO(unittest.TestCase): diff --git a/Wrappers/Python/test/test_io.py b/Wrappers/Python/test/test_io.py index 6ea51eee..a793f56b 100644 --- a/Wrappers/Python/test/test_io.py +++ b/Wrappers/Python/test/test_io.py @@ -4,7 +4,7 @@ import h5py import numpy as np import vtk -from ccpi.viewer.utils.conversion import * +from ccpi.viewer.utils.conversion import Converter, calculate_target_downsample_shape from ccpi.viewer.utils.io import ImageReader, cilviewerHDF5Writer, cilviewerHDF5Reader class TestImageReaderAndWriter(unittest.TestCase): diff --git a/Wrappers/Python/test/test_resample_readers.py b/Wrappers/Python/test/test_resample_readers.py index 40e618ce..3498f4ec 100644 --- a/Wrappers/Python/test/test_resample_readers.py +++ b/Wrappers/Python/test/test_resample_readers.py @@ -4,7 +4,10 @@ import numpy as np import vtk -from ccpi.viewer.utils.conversion import * +from ccpi.viewer.utils.conversion import Converter, calculate_target_downsample_shape, \ + cilRawResampleReader, cilTIFFResampleReader, cilNumpyMETAImageWriter, cilMetaImageResampleReader,\ + cilNumpyResampleReader +