Skip to content

Remove unused compressed tomo standard test data #554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
Binary file removed tests/test_data/tomo_standard.npz
Binary file not shown.
Loading