Skip to content

Commit

Permalink
fixing off by one error that impacts small boards
Browse files Browse the repository at this point in the history
  • Loading branch information
mprib committed Aug 3, 2024
1 parent fd76257 commit 5c1c0a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion caliscope/calibration/intrinsic_calibrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@ def add_frame_packet(self, frame_packet: FramePacket):
def backfill_calibration_frames(self):
logger.info(f"Initiating backfill of frames to hit target grid count of {self.target_grid_count}...currently at {self.grid_count}")
actual_grid_count = len(self.calibration_frame_indices)
logger.info(f"Actual Grid Count: {actual_grid_count}")
# build new frame list
new_potential_frames = []
for frame_index, ids in self.all_ids.items():
if frame_index not in self.calibration_frame_indices:
if len(ids) > 6: # believe this may be a requirement of the calibration algorithm
if len(ids) >= 6: # believe this may be a requirement of the calibration algorithm
new_potential_frames.append(frame_index)

sample_size = self.target_grid_count-actual_grid_count
Expand Down

0 comments on commit 5c1c0a0

Please sign in to comment.