From b01f3f823127ced7e59dc23467655421395f8ef4 Mon Sep 17 00:00:00 2001 From: Bento007 Date: Tue, 12 Mar 2024 13:21:09 -0700 Subject: [PATCH] at parity --- .../ontology-builder/src/compute_descendent_mappings.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/ontology-builder/src/compute_descendent_mappings.py b/tools/ontology-builder/src/compute_descendent_mappings.py index 610a3f5d..fb318822 100644 --- a/tools/ontology-builder/src/compute_descendent_mappings.py +++ b/tools/ontology-builder/src/compute_descendent_mappings.py @@ -289,7 +289,8 @@ def compare_descendant_mappings(file_1: str, file_2: str) -> None: PROD_DATASETS = load_prod_datasets() generate_cell_descendant_mapping(ONTOLOGY_PARSER, PROD_DATASETS) generate_tissue_descendant_mapping(ONTOLOGY_PARSER, PROD_DATASETS) - compare_descendant_mappings("cell_type_descendants.json", "cell_type_descendants (1).json") - compare_descendant_mappings("cell_type_descendants.json", "cell_type_descendants_cxg_2.json") - compare_descendant_mappings("tissue_descendants.json", "tissue_descendants (1).json") - compare_descendant_mappings("tissue_descendants.json", "tissue_descendants_cxg_2.json") + + with contextlib.suppress(FileNotFoundError): + compare_descendant_mappings("cell_type_descendants.json", "cell_type_descendants_last.json") + with contextlib.suppress(FileNotFoundError): + compare_descendant_mappings("tissue_descendants.json", "tissue_descendants_last.json")