Skip to content

Commit

Permalink
fix typeerrror
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Apr 22, 2024
1 parent 6e85489 commit 93c1950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyroengine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import cv2 # type: ignore[import-untyped]
import numpy as np
from numpy.typing import NDArray

Check notice on line 20 in pyroengine/engine.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

pyroengine/engine.py#L20

'numpy.typing.NDArray' imported but unused (F401)

Check warning on line 20 in pyroengine/engine.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

pyroengine/engine.py#L20

Unused NDArray imported from numpy.typing
from PIL import Image
from pyroclient import client
from requests.exceptions import ConnectionError
Expand Down Expand Up @@ -267,7 +268,7 @@ def _update_states(self, frame: Image.Image, preds: np.ndarray, cam_key: str) ->

return conf

def predict(self, frame: Image.Image, cam_id: Optional[str] = None) -> np.ndarray[Any, Any]:
def predict(self, frame: Image.Image, cam_id: Optional[str] = None) -> np.ndarray:
"""Computes the confidence that the image contains wildfire cues
Args:
Expand Down

0 comments on commit 93c1950

Please sign in to comment.