diff --git a/tests/conftest.py b/tests/conftest.py index 5ce616bd2..10e2cafa8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -134,15 +134,6 @@ def test_data_path(): return os.path.join(CUR_DIR, "test_data") -# only load from disk once per session, and we use np.copy for the elements, -# to ensure data in this loaded file stays as originally loaded -@pytest.fixture(scope="session") -def data_file(test_data_path): - in_file = os.path.join(test_data_path, "tomo_standard.npz") - # keys: data, flats, darks, angles, angles_total, detector_y, detector_x - return np.load(in_file) - - @pytest.fixture def ensure_clean_memory(): import cupy as cp @@ -158,54 +149,6 @@ def ensure_clean_memory(): cache.clear() -@pytest.fixture -def host_data(data_file): - return np.float32(np.copy(data_file["data"])) - - -@pytest.fixture -def data(host_data, ensure_clean_memory): - import cupy as cp - - return cp.asarray(host_data) - - -@pytest.fixture -def host_angles(data_file): - return np.float32(np.copy(data_file["angles"])) - - -@pytest.fixture -def host_angles_radians(host_angles): - return host_angles - - -@pytest.fixture -def host_flats(data_file): - return np.float32(np.copy(data_file["flats"])) - - -@pytest.fixture -def flats(host_flats, ensure_clean_memory): - import cupy as cp - - return cp.asarray(host_flats) - - -@pytest.fixture -def host_darks( - data_file, -): - return np.float32(np.copy(data_file["darks"])) - - -@pytest.fixture -def darks(host_darks, ensure_clean_memory): - import cupy as cp - - return cp.asarray(host_darks) - - @pytest.fixture def standard_data_path(): return "/entry1/tomo_entry/data/data" diff --git a/tests/test_data/tomo_standard.npz b/tests/test_data/tomo_standard.npz deleted file mode 100644 index 7d13723d0..000000000 Binary files a/tests/test_data/tomo_standard.npz and /dev/null differ