Skip to content

Commit

Permalink
name consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Jun 17, 2024
1 parent ae3e12c commit 68f8f2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyroengine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ def run(self, period: int = 30) -> None:
# Analyze each captured frame
if queue:
while not queue.empty():
cam_id, img = queue.get()
cam_id, frame = queue.get()
try:
self.analyze_stream(img, cam_id)
self.analyze_stream(frame, cam_id)
except Exception as e:
logging.error(f"Error running prediction: {e}")

Check warning on line 185 in pyroengine/core.py

View check run for this annotation

Codecov / codecov/patch

pyroengine/core.py#L181-L185

Added lines #L181 - L185 were not covered by tests

# Use the last frame to check if it's day_time
self.day_time = is_day_time(None, img, "ir")
self.day_time = is_day_time(None, frame, "ir")

# Process alerts
try:
Expand Down

0 comments on commit 68f8f2d

Please sign in to comment.