Skip to content

Commit

Permalink
Fixing Typo errors an formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioReyesSan committed Nov 20, 2024
1 parent cf3e90f commit c5b1ea8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_flattened_cell_sizes(self):
return self._cached_flattened_cell_sizes

def get_aspect_ratio_pattern(self) -> float:
"""Get aspect ratio using the calibration pattern, wich should be squared."""
"""Get aspect ratio using the calibration pattern, which should be squared."""
tilt, pan = self.get_rotation_angles()
acceptance_angle = 10

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def on_restart_linearity_heatmap_clicked():
self.draw_evaluation_heatmap_checkbox.setChecked(False)
self.draw_evaluation_heatmap_checkbox.stateChanged.connect(draw_evaluation_heatmap_callback)

self.draw_linearity_heatmap_checkbox = QCheckBox("Draw lineariy error")
self.draw_linearity_heatmap_checkbox = QCheckBox("Draw linearity error")
self.draw_linearity_heatmap_checkbox.setChecked(False)
self.draw_linearity_heatmap_checkbox.stateChanged.connect(draw_linearity_heatmap_callback)

Expand Down Expand Up @@ -1054,7 +1054,7 @@ def process_detection_results(self, img: np.array, detection: BoardDetection, im
f"Linear error cols rms: {err_rms_cols:.2f} px" # noqa E231
)
self.aspect_ratio_label.setText(
f"Aspect Reatio: {detection.get_aspect_ratio_pattern():.2f} px" # noqa E231
f"Aspect Ratio: {detection.get_aspect_ratio_pattern():.2f} px" # noqa E231
)
self.rough_tilt_label.setText(
f"Rough tilt: {detection.get_tilt():.2f} degrees" # noqa E231
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def get_training_occupancy_heatmap(self) -> np.array:
return self.training_heatmap

def get_linearity_heatmap(self) -> np.array:
"""Return the linearity map to evaluate the recitification error."""
"""Return the linearity map to evaluate the image rectification."""
return self.linearity_heatmap

def get_evaluation_occupancy_heatmap(self) -> np.array:
Expand Down Expand Up @@ -594,7 +594,7 @@ def process_detection_eval_mode(
mode: OperationMode = OperationMode.CALIBRATION,
) -> CollectionStatus:
"""Evaluate detections mad ein evaluation mode."""
# process wihtout filtering detections
# process witout filtering detections
self.update_linearity_heatmap(self.linearity_heatmap, detection)

def get_skew_coverage(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def draw_indicators(self, painter: QPainter, display_size):
painter.drawText(position_text_speed, "Speed")

# ToDo: define percentage to change skew and pct size to change to green
thresold_to_be_green = 0.3
if self.skew_percentage < thresold_to_be_green:
threshold_to_be_green = 0.3
if self.skew_percentage < threshold_to_be_green:
pen_skew = QPen(color_red)
brush_skew = QBrush(color_red)
else:
Expand All @@ -294,7 +294,7 @@ def draw_indicators(self, painter: QPainter, display_size):
int(display_size.height() * 0.03),
),
)
# Draw the skew progrees bar
# Draw the skew progress bar
painter.drawRect(skew_indicator)

# ToDo: define percentage to change skew and pct size to change to green
Expand Down Expand Up @@ -323,7 +323,7 @@ def draw_indicators(self, painter: QPainter, display_size):
int(display_size.height() * 0.03),
),
)
# Draw the board size progrees bar
# Draw the board size progress bar
painter.drawRect(board_size_indicator)

# Draw board pan tilt angle text
Expand Down

0 comments on commit c5b1ea8

Please sign in to comment.