Skip to content

Commit

Permalink
fixed flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMariday committed Mar 11, 2024
1 parent 64b8306 commit ff30c56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/led_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def find_led(self, image):

max_dimension = max(image.shape)

return LedResults((center_x/max_dimension, center_y/max_dimension), contours)
return LedResults((center_x / max_dimension, center_y / max_dimension), contours)

@staticmethod
def draw_results(image, results):
Expand Down
4 changes: 2 additions & 2 deletions lib/sfm/database_populator.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def populate(db_path, input_directory, led_count=23, min_avg_points_per_view=100
for line in lines:
led_id, u, v = line.split(",")

key_points[int(led_id)][0] = float(u)*2000
key_points[int(led_id)][1] = float(v)*2000
key_points[int(led_id)][0] = float(u) * 2000
key_points[int(led_id)][1] = float(v) * 2000

total_keypoints += 1

Expand Down
2 changes: 1 addition & 1 deletion lib/sfm/sfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ def save_points(self, filename):
)

with open(filename, "w") as f:
f.write("\n".join(lines))
f.write("\n".join(lines))
2 changes: 0 additions & 2 deletions test/test_capture_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ def test_capture_sequence():

def test_capture_sequence_correctness():

mock_camera = MockCamera()

for device_id in range(9):
output_dir_full = os.path.join(os.getcwd(), "test", "scan")
filename = f"capture_cam_{device_id}.csv"
Expand Down

0 comments on commit ff30c56

Please sign in to comment.