From fd1521a1d91bc900446dbba4add024d844f6edbd Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 5 May 2024 14:57:29 +0200 Subject: [PATCH] Update ci.yaml to run tests on docs changes (#11651) Signed-off-by: Glenn Jocher --- .github/workflows/ci.yaml | 5 ----- ultralytics/solutions/parking_management.py | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7ee9686bb7..458c5bfed5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,13 +6,8 @@ name: Ultralytics CI on: push: branches: [main] - paths-ignore: - - "docs/**" - - "mkdocs.yml" pull_request: branches: [main] - paths-ignore: - - "docs/**" schedule: - cron: "0 0 * * *" # runs at 00:00 UTC every day workflow_dispatch: diff --git a/ultralytics/solutions/parking_management.py b/ultralytics/solutions/parking_management.py index b9403d3c0c..b4fcfc33ee 100644 --- a/ultralytics/solutions/parking_management.py +++ b/ultralytics/solutions/parking_management.py @@ -99,7 +99,7 @@ class ParkingPtsSelection: Draw bounding box on canvas. Args: - box(list): Bounding box data + box (list): Bounding box data """ for i in range(4): @@ -176,7 +176,8 @@ class ParkingManagement: self.model = YOLO(self.model_path) return self.model - def parking_regions_extraction(self, json_file): + @staticmethod + def parking_regions_extraction(json_file): """ Extract parking regions from json file. @@ -185,8 +186,7 @@ class ParkingManagement: """ with open(json_file, "r") as json_file: - json_data = json.load(json_file) - return json_data + return json.load(json_file) def process_data(self, json_data, im0, boxes, clss): """