Skip to content
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
3 changes: 1 addition & 2 deletions tests/aignostics/qupath/gui_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ async def test_gui_run_qupath_install_to_inspect( # noqa: C901, PLR0912, PLR091
# Check for (1) spot added to QuPath project, (2) heatmaps added, (3) spot annotated
try:
project_info = json.loads(output)
annotations_total = 0
spot_found = False
spot_width = None
spot_height = None
Expand All @@ -329,7 +328,7 @@ async def test_gui_run_qupath_install_to_inspect( # noqa: C901, PLR0912, PLR091
), (
f"Expected approximately {SPOT_0_EXPECTED_CELLS_CLASSIFIED[0]} "
f"({SPOT_0_EXPECTED_CELLS_CLASSIFIED[1]}% tolerance) annotations in the QuPath results, "
f"but found {annotations_total}"
f"but found {spot_annotations}"
)
except json.JSONDecodeError as e:
pytest.fail(f"Failed to parse QuPath inspect output as JSON: {e}\nOutput: {output!r}\n")
Expand Down
20 changes: 10 additions & 10 deletions tests/constants_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@
SPECIAL_APPLICATION_VERSION = "0.99.0"

SPOT_0_EXPECTED_RESULT_FILES = [
("tissue_qc_segmentation_map_image.tiff", 1540764, 10),
("tissue_qc_geojson_polygons.json", 160668, 10),
("tissue_segmentation_geojson_polygons.json", 853784, 10),
("readout_generation_slide_readouts.csv", 302252, 10),
("readout_generation_cell_readouts.csv", 1472661, 10),
("cell_classification_geojson_polygons.json", 9939791, 10),
("tissue_segmentation_segmentation_map_image.tiff", 2807584, 10),
("tissue_segmentation_csv_class_information.csv", 451, 10),
("tissue_qc_csv_class_information.csv", 284, 10),
("tissue_qc_segmentation_map_image.tiff", 1642856, 10),
("tissue_qc_geojson_polygons.json", 259955, 10),
("tissue_segmentation_geojson_polygons.json", 887003, 10),
("readout_generation_slide_readouts.csv", 303217, 10),
("readout_generation_cell_readouts.csv", 1658344, 10),
("cell_classification_geojson_polygons.json", 11218951, 10),
("tissue_segmentation_segmentation_map_image.tiff", 2945078, 10),
("tissue_segmentation_csv_class_information.csv", 452, 10),
("tissue_qc_csv_class_information.csv", 285, 10),
]
SPOT_0_EXPECTED_CELLS_CLASSIFIED = (35160, 10)
SPOT_0_EXPECTED_CELLS_CLASSIFIED = (39798, 10)

SPOT_1_EXPECTED_RESULT_FILES = [
("tissue_qc_segmentation_map_image.tiff", 469040, 10),
Expand Down
Loading