diff --git a/bg_atlasgen/validate_atlases.py b/bg_atlasgen/validate_atlases.py index 1e096f2..a0f98c2 100644 --- a/bg_atlasgen/validate_atlases.py +++ b/bg_atlasgen/validate_atlases.py @@ -163,9 +163,12 @@ def validate_mesh_structure_pairs(atlas_path: Path): num for num in id_numbers if f"{num}.obj" not in obj_file_list ] - print(f"IDs without corresponding obj files: {missing_files}") print(f"IDs with corresponding obj files: {matching_files}") + assert ( + missing_files.__len__() == 0 + ), f"These IDs don't have corresponding mesh objects: {missing_files}" + if __name__ == "__main__": # list to store the validation functions