From 597c9ede9ea41857eaee26675c99854c8a441fe2 Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Thu, 26 Nov 2026 12:09:42 +1000 Subject: [PATCH] chore: symbolic and examples scripts have explicit imports and no unused names Codacy pyflakes F401, F403, F841. Co-Authored-By: Claude Sonnet 5.5 --- examples/blobs2.py | 1 - examples/randomdots.py | 1 - examples/ransac_line.py | 1 - symbolic/bundle-adjust.py | 3 +-- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/blobs2.py b/examples/blobs2.py index 69013750..b7fd54f7 100644 --- a/examples/blobs2.py +++ b/examples/blobs2.py @@ -1,5 +1,4 @@ from machinevisiontoolbox import Image -import matplotlib.pyplot as plt mb = Image.Read("multiblobs.png") diff --git a/examples/randomdots.py b/examples/randomdots.py index 79624039..00f6bfd2 100644 --- a/examples/randomdots.py +++ b/examples/randomdots.py @@ -4,7 +4,6 @@ # could be the basis of texture for stereo calibration from machinevisiontoolbox import Image -import matplotlib.pyplot as plt image = Image.Random(200) image.threshold_interactive(block=True) diff --git a/examples/ransac_line.py b/examples/ransac_line.py index a183da9a..e9522859 100644 --- a/examples/ransac_line.py +++ b/examples/ransac_line.py @@ -7,7 +7,6 @@ def ransac_line(x, y, npoints=2, maxiter=20, t=1e-6, d=4): iterations = 0 - n = len(x) best_fit = np.inf best_model = None diff --git a/symbolic/bundle-adjust.py b/symbolic/bundle-adjust.py index 9067d1a7..4bdc502f 100644 --- a/symbolic/bundle-adjust.py +++ b/symbolic/bundle-adjust.py @@ -1,8 +1,7 @@ import sys from datetime import datetime -from machinevisiontoolbox import Camera from spatialmath import base -from sympy import * +from sympy import Matrix, pycode, simplify, sqrt import numpy as np # Camera intrinsics