Skip to content

Commit

Permalink
Fix typo in translated test
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward authored and LucienMorey committed Nov 12, 2024
1 parent 9bc6820 commit e7c419e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions photon-lib/py/test/openCVHelp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

@pytest.fixture(autouse=True)
def setupCommon() -> None:

nt.NetworkTableInstance.getDefault().startServer()
setVersionCheckEnabled(False)

Expand All @@ -26,9 +25,6 @@ def test_TrlConvert():
assert result.Z() == pytest.approx(trl.Z(), 0.005)





def test_RotConvert():
rot = Rotation3d(0.5, 1, -1)
rvec = OpenCVHelp.rotationToRVec(rot)
Expand All @@ -40,7 +36,6 @@ def test_RotConvert():


def test_Projection():

prop = SimCameraProperties()

target = VisionTargetSim(
Expand All @@ -60,7 +55,7 @@ def test_Projection():
circulation = 0.0
for i in range(0, len(imagePoints)):
xDiff = imagePoints[(i + 1) % 4][0][0] - imagePoints[i][0][0]
ySum = imagePoints[(i + 1) % 4][0][1] - imagePoints[i][0][1]
ySum = imagePoints[(i + 1) % 4][0][1] + imagePoints[i][0][1]
circulation += xDiff * ySum

assert circulation > 0, "2d fiducial points aren't counter-clockwise"
Expand Down

0 comments on commit e7c419e

Please sign in to comment.