|
6 | 6 |
|
7 | 7 | import os |
8 | 8 |
|
| 9 | +TEST_SUITE = "AIGNOSTICS" |
| 10 | + |
9 | 11 | SPOT_0_GS_URL = "gs://platform-api-application-test-data/heta/slides/8fafc17d-a5cc-4e9d-a982-030b1486ca88.tiff" |
10 | 12 | SPOT_0_FILENAME = "8fafc17d-a5cc-4e9d-a982-030b1486ca88.tiff" |
11 | | -SPOT_0_FILESIZE = 10562338 |
12 | | -SPOT_0_EXPECTED_RESULT_FILES = [ |
13 | | - ("tissue_qc_segmentation_map_image.tiff", 1698570, 10), |
14 | | - ("tissue_qc_geojson_polygons.json", 315019, 10), |
15 | | - ("tissue_segmentation_geojson_polygons.json", 927599, 10), |
16 | | - ("readout_generation_slide_readouts.csv", 299865, 10), |
17 | | - ("readout_generation_cell_readouts.csv", 1470036, 10), |
18 | | - ("cell_classification_geojson_polygons.json", 9915953, 10), |
19 | | - ("tissue_segmentation_segmentation_map_image.tiff", 2989980, 10), |
20 | | - ("tissue_segmentation_csv_class_information.csv", 361, 10), |
21 | | - ("tissue_qc_csv_class_information.csv", 236, 10), |
22 | | -] |
23 | | -SPOT_0_EXPECTED_CELLS_CLASSIFIED = (35160, 10) |
24 | 13 | SPOT_0_CRC32C = "5onqtA==" |
| 14 | +SPOT_0_FILESIZE = 10562338 |
25 | 15 | SPOT_0_RESOLUTION_MPP = 0.26268186053789266 |
26 | 16 | SPOT_0_WIDTH = 7447 |
27 | 17 | SPOT_0_HEIGHT = 7196 |
28 | 18 |
|
29 | 19 | SPOT_1_GS_URL = "gs://aignx-storage-service-dev/sample_data_formatted/9375e3ed-28d2-4cf3-9fb9-8df9d11a6627.tiff" |
30 | 20 | SPOT_1_FILENAME = "9375e3ed-28d2-4cf3-9fb9-8df9d11a6627.tiff" |
31 | | -SPOT_1_FILESIZE = 14681750 |
32 | | -SPOT_1_EXPECTED_RESULT_FILES = [ |
33 | | - ("tissue_qc_segmentation_map_image.tiff", 464908, 10), |
34 | | - ("tissue_qc_geojson_polygons.json", 180522, 10), |
35 | | - ("tissue_segmentation_geojson_polygons.json", 270931, 10), |
36 | | - ("readout_generation_slide_readouts.csv", 295268, 10), |
37 | | - ("readout_generation_cell_readouts.csv", 2228907, 10), |
38 | | - ("cell_classification_geojson_polygons.json", 16054058, 10), |
39 | | - ("tissue_segmentation_segmentation_map_image.tiff", 581258, 10), |
40 | | - ("tissue_segmentation_csv_class_information.csv", 342, 10), |
41 | | - ("tissue_qc_csv_class_information.csv", 232, 10), |
42 | | -] |
43 | 21 | SPOT_1_CRC32C = "9l3NNQ==" |
| 22 | +SPOT_1_FILESIZE = 14681750 |
| 23 | +SPOT_1_RESOLUTION_MPP = 0.46499982 |
44 | 24 | SPOT_1_WIDTH = 3728 |
45 | 25 | SPOT_1_HEIGHT = 3640 |
46 | | -SPOT_1_RESOLUTION_MPP = 0.46499982 |
47 | 26 |
|
48 | 27 | SPOT_2_GS_URL = "gs://aignx-storage-service-dev/sample_data_formatted/8c7b079e-8b8a-4036-bfde-5818352b503a.tiff" |
49 | 28 | SPOT_2_FILENAME = "8c7b079e-8b8a-4036-bfde-5818352b503a.tiff" |
50 | | -SPOT_2_FILESIZE = 20153772 |
51 | 29 | SPOT_2_CRC32C = "w+ud3g==" |
| 30 | +SPOT_2_RESOLUTION_MPP = 0.46499982 |
52 | 31 | SPOT_2_WIDTH = 3616 |
53 | 32 | SPOT_2_HEIGHT = 3400 |
54 | | -SPOT_2_RESOLUTION_MPP = 0.46499982 |
55 | 33 |
|
56 | 34 | SPOT_3_GS_URL = "gs://aignx-storage-service-dev/sample_data_formatted/1f4f366f-a2c5-4407-9f5e-23400b22d50e.tiff" |
57 | 35 | SPOT_3_FILENAME = "1f4f366f-a2c5-4407-9f5e-23400b22d50e.tiff" |
58 | 36 | SPOT_3_CRC32C = "Zmx0wA==" |
| 37 | +SPOT_3_RESOLUTION_MPP = 0.46499982 |
59 | 38 | SPOT_3_WIDTH = 4016 |
60 | 39 | SPOT_3_HEIGHT = 3952 |
61 | | -SPOT_3_RESOLUTION_MPP = 0.46499982 |
62 | 40 |
|
63 | 41 | match os.getenv("AIGNOSTICS_PLATFORM_ENVIRONMENT", "production"): |
64 | 42 | case "production": |
|
67 | 45 |
|
68 | 46 | HETA_APPLICATION_ID = "he-tme" |
69 | 47 | HETA_APPLICATION_VERSION = "1.0.0-beta.8" |
| 48 | + |
| 49 | + SPOT_0_EXPECTED_RESULT_FILES = [ |
| 50 | + ("tissue_qc_segmentation_map_image.tiff", 1698570, 10), |
| 51 | + ("tissue_qc_geojson_polygons.json", 315019, 10), |
| 52 | + ("tissue_segmentation_geojson_polygons.json", 927599, 10), |
| 53 | + ("readout_generation_slide_readouts.csv", 299865, 10), |
| 54 | + ("readout_generation_cell_readouts.csv", 1470036, 10), |
| 55 | + ("cell_classification_geojson_polygons.json", 9915953, 10), |
| 56 | + ("tissue_segmentation_segmentation_map_image.tiff", 2989980, 10), |
| 57 | + ("tissue_segmentation_csv_class_information.csv", 361, 10), |
| 58 | + ("tissue_qc_csv_class_information.csv", 236, 10), |
| 59 | + ] |
| 60 | + SPOT_0_EXPECTED_CELLS_CLASSIFIED = (35160, 10) |
| 61 | + |
| 62 | + SPOT_1_EXPECTED_RESULT_FILES = [ |
| 63 | + ("tissue_qc_segmentation_map_image.tiff", 464908, 10), |
| 64 | + ("tissue_qc_geojson_polygons.json", 180522, 10), |
| 65 | + ("tissue_segmentation_geojson_polygons.json", 270931, 10), |
| 66 | + ("readout_generation_slide_readouts.csv", 295268, 10), |
| 67 | + ("readout_generation_cell_readouts.csv", 2228907, 10), |
| 68 | + ("cell_classification_geojson_polygons.json", 16054058, 10), |
| 69 | + ("tissue_segmentation_segmentation_map_image.tiff", 581258, 10), |
| 70 | + ("tissue_segmentation_csv_class_information.csv", 342, 10), |
| 71 | + ("tissue_qc_csv_class_information.csv", 232, 10), |
| 72 | + ] |
| 73 | + |
70 | 74 | case "staging": |
71 | 75 | TEST_APPLICATION_ID = "test-app" |
72 | 76 | TEST_APPLICATION_VERSION = "0.0.5" |
73 | 77 |
|
74 | 78 | HETA_APPLICATION_ID = "he-tme" |
75 | 79 | HETA_APPLICATION_VERSION = "1.0.0-sl+4" |
| 80 | + |
| 81 | + SPOT_0_EXPECTED_RESULT_FILES = [ |
| 82 | + ("tissue_qc_segmentation_map_image.tiff", 1698570, 10), |
| 83 | + ("tissue_qc_geojson_polygons.json", 315019, 10), |
| 84 | + ("tissue_segmentation_geojson_polygons.json", 927599, 10), |
| 85 | + ("readout_generation_slide_readouts.csv", 299865, 10), |
| 86 | + ("readout_generation_cell_readouts.csv", 1470036, 10), |
| 87 | + ("cell_classification_geojson_polygons.json", 9915953, 10), |
| 88 | + ("tissue_segmentation_segmentation_map_image.tiff", 2989980, 10), |
| 89 | + ("tissue_segmentation_csv_class_information.csv", 361, 10), |
| 90 | + ("tissue_qc_csv_class_information.csv", 236, 10), |
| 91 | + ] |
| 92 | + SPOT_0_EXPECTED_CELLS_CLASSIFIED = (35160, 10) |
| 93 | + |
| 94 | + SPOT_1_EXPECTED_RESULT_FILES = [ |
| 95 | + ("tissue_qc_segmentation_map_image.tiff", 440122, 10), |
| 96 | + ("tissue_qc_geojson_polygons.json", 139943, 10), |
| 97 | + ("tissue_segmentation_geojson_polygons.json", 270931, 10), |
| 98 | + ("readout_generation_slide_readouts.csv", 295268, 10), |
| 99 | + ("readout_generation_cell_readouts.csv", 300408, 10), |
| 100 | + ("cell_classification_geojson_polygons.json", 16384866, 10), |
| 101 | + ("tissue_segmentation_segmentation_map_image.tiff", 508552, 10), |
| 102 | + ("tissue_segmentation_csv_class_information.csv", 443, 10), |
| 103 | + ("tissue_qc_csv_class_information.csv", 284, 10), |
| 104 | + ] |
| 105 | + |
76 | 106 | case _: |
77 | 107 | message = f"Unsupported AIGNOSTICS_PLATFORM_ENVIRONMENT value: {os.getenv('AIGNOSTICS_PLATFORM_ENVIRONMENT')}" |
78 | 108 | raise ValueError(message) |
0 commit comments