Skip to content
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

Revert "Add the "decollage" process for raw microscope output to the package" #27

Merged
merged 1 commit into from
Aug 29, 2024
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
184 changes: 0 additions & 184 deletions cyto_ml/data/decollage.py

This file was deleted.

47 changes: 5 additions & 42 deletions cyto_ml/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import shutil
import pytest
from cyto_ml.models.scivision import (
load_model,
Expand All @@ -9,19 +8,13 @@


@pytest.fixture
def fixture_dir():
def image_dir():
"""
Base directory for the test fixtures (images, metadata)
Existing directory of images
"""
return os.path.join(os.path.abspath(os.path.dirname(__file__)), "../../fixtures/")


@pytest.fixture
def image_dir(fixture_dir):
"""
Directory with single plankton images
"""
return os.path.join(fixture_dir, "test_images")
return os.path.join(
os.path.abspath(os.path.dirname(__file__)), "fixtures/test_images/"
)


@pytest.fixture
Expand Down Expand Up @@ -50,33 +43,3 @@ def env_endpoint():
if endpoint and "https" not in endpoint:
endpoint = None
return endpoint


@pytest.fixture
def lst_file(fixture_dir):
"""Location of a metadata file for a FlowCam image batch"""
return os.path.join(
fixture_dir,
"MicrobialMethane_MESO_Tank10_54.0143_-2.7770_04052023_1/metadata.lst",
)


@pytest.fixture
def collage_file(fixture_dir):
"""Location of a collage file with a FlowCam image batch"""
return os.path.join(
fixture_dir,
"MicrobialMethane_MESO_Tank10_54.0143_-2.7770_04052023_1/MicrobialMethane_MESO_Tank10_54.0143_-2.7770_04052023_1_images_000001.tif", # noqa: E501
) # noqa: E501


@pytest.fixture
def exiftest_file(fixture_dir):
"""This runs in-place so make a copy of the file every time"""
orig = os.path.join(
fixture_dir,
"MicrobialMethane_MESO_Tank10_54.0143_-2.7770_04052023_1/exiftest.tif",
)
temp = orig.replace("exiftest", "temp")
shutil.copyfile(orig, temp)
return temp
41 changes: 0 additions & 41 deletions cyto_ml/tests/test_decollage.py

This file was deleted.

3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ channels:
- defaults
dependencies:
- python=3.9
- pytorch=1.10.0 # pinned here for the scivision model
- pytorch=1.10.0
- mkl=2024.0
- chromadb=0.5.3
- intake-xarray
Expand All @@ -21,6 +21,5 @@ dependencies:
- streamlit
- plotly
- pip:
- pyexiftool
- scivision
- git+https://github.com/alan-turing-institute/plankton-cefas-scivision@main
Binary file not shown.
Binary file not shown.
Loading