Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
adding assertion to validate_mesh_structure_pairs function
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorpm committed Jan 22, 2024
1 parent bab77a6 commit 6a73af9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bg_atlasgen/validate_atlases.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a73af9

Please sign in to comment.