Skip to content

Commit b3d2a21

Browse files
committed
Fix lints
1 parent f0f1f89 commit b3d2a21

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hloc/reconstruction.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def run_reconstruction(
8484
return None
8585
logger.info(f"Reconstructed {len(reconstructions)} model(s).")
8686

87-
# Find the largest reconstruction by examining model folders #422
8887
largest_folder = None
8988
largest_num_images = 0
9089
for model_dir in models_path.iterdir():
@@ -101,13 +100,16 @@ def run_reconstruction(
101100
continue
102101
assert largest_folder is not None
103102

104-
logger.info(f"Largest model is {largest_folder.name} with {largest_num_images} images.")
103+
logger.info(
104+
f"Largest model is {largest_folder.name} "
105+
f"with {largest_num_images} images."
106+
)
105107

106108
for filename in ["images.bin", "cameras.bin", "points3D.bin"]:
107109
if (sfm_dir / filename).exists():
108110
(sfm_dir / filename).unlink()
109111
shutil.move(str(largest_folder / filename), str(sfm_dir))
110-
112+
111113
return pycolmap.Reconstruction(sfm_dir)
112114

113115

0 commit comments

Comments
 (0)