From 22f7d4597ff85e73d6d2e53e1164bd0770e93422 Mon Sep 17 00:00:00 2001 From: Geoffrey Woollard Date: Thu, 20 Jun 2024 15:59:27 -0400 Subject: [PATCH] unit test. should pass in about 1 min --- ...est_config_map_to_map_distance_matrix.yaml | 26 +++++++++++++++++++ ....py => test_map_to_map_distance_matrix.py} | 0 2 files changed, 26 insertions(+) create mode 100644 config_files/test_config_map_to_map_distance_matrix.yaml rename tests/{test_map_to_map.py => test_map_to_map_distance_matrix.py} (100%) diff --git a/config_files/test_config_map_to_map_distance_matrix.yaml b/config_files/test_config_map_to_map_distance_matrix.yaml new file mode 100644 index 0000000..0398065 --- /dev/null +++ b/config_files/test_config_map_to_map_distance_matrix.yaml @@ -0,0 +1,26 @@ +data: + n_pix: 224 + psize: 2.146 + submission: + fname: data/submission_0.pt + volume_key: volumes + metadata_key: populations + label_key: id + ground_truth: + volumes: data/test_maps_gt_flat.pt + metadata: data/test_metadata.csv + mask: + do: true + volume: data/mask_dilated_wide_224x224.mrc +analysis: + metrics: + - l2 + # - corr + # - bioem + # - fsc + chunk_size_submission: 80 + chunk_size_gt: 190 + normalize: + do: true + method: median_zscore +output: results/test_map_to_map_distance_matrix_submission_0.pkl \ No newline at end of file diff --git a/tests/test_map_to_map.py b/tests/test_map_to_map_distance_matrix.py similarity index 100% rename from tests/test_map_to_map.py rename to tests/test_map_to_map_distance_matrix.py