mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Bump python projects to 2025.2.1 (#1705)
Blocked on robotpy release --------- Signed-off-by: Jade Turner <spacey-sooty@proton.me> Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com>
This commit is contained in:
4
.github/workflows/python.yml
vendored
4
.github/workflows/python.yml
vendored
@@ -5,11 +5,11 @@ permissions:
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ main ]
|
||||
tags:
|
||||
- 'v*'
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches: [ main ]
|
||||
merge_group:
|
||||
|
||||
concurrency:
|
||||
|
||||
@@ -59,11 +59,11 @@ setup(
|
||||
version=versionString,
|
||||
install_requires=[
|
||||
"numpy~=2.1",
|
||||
"wpilib<2026,>=2025.0.0b1",
|
||||
"robotpy-wpimath<2026,>=2025.0.0b1",
|
||||
"robotpy-apriltag<2026,>=2025.0.0b1",
|
||||
"robotpy-cscore<2026,>=2025.0.0b1",
|
||||
"pyntcore<2026,>=2025.0.0b1",
|
||||
"wpilib<2026,>=2025.2.1",
|
||||
"robotpy-wpimath<2026,>=2025.2.1",
|
||||
"robotpy-apriltag<2026,>=2025.2.1",
|
||||
"robotpy-cscore<2026,>=2025.2.1",
|
||||
"pyntcore<2026,>=2025.2.1",
|
||||
"opencv-python;platform_machine!='roborio'",
|
||||
],
|
||||
description=descriptionStr,
|
||||
|
||||
@@ -604,10 +604,14 @@ def test_TagAmbiguity() -> None:
|
||||
|
||||
robotPose = Pose2d()
|
||||
visionSysSim.update(robotPose)
|
||||
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
|
||||
tgt = camera.getLatestResult().getBestTarget()
|
||||
assert tgt is not None
|
||||
ambiguity = tgt.getPoseAmbiguity()
|
||||
assert ambiguity > 0.5, "Tag ambiguity expected to be high"
|
||||
|
||||
robotPose = Pose2d(Translation2d(-2.0, -2.0), Rotation2d.fromDegrees(30.0))
|
||||
visionSysSim.update(robotPose)
|
||||
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
|
||||
tgt = camera.getLatestResult().getBestTarget()
|
||||
assert tgt is not None
|
||||
ambiguity = tgt.getPoseAmbiguity()
|
||||
assert 0 < ambiguity < 0.2, "Tag ambiguity expected to be high"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[tool.robotpy]
|
||||
|
||||
# Version of robotpy this project depends on
|
||||
robotpy_version = "2024.3.2.2"
|
||||
robotpy_version = "2025.2.1"
|
||||
|
||||
# Which extra RobotPy components should be installed
|
||||
# -> equivalent to `pip install robotpy[extra1, ...]
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[tool.robotpy]
|
||||
|
||||
# Version of robotpy this project depends on
|
||||
robotpy_version = "2024.3.2.2"
|
||||
robotpy_version = "2025.2.1"
|
||||
|
||||
# Which extra RobotPy components should be installed
|
||||
# -> equivalent to `pip install robotpy[extra1, ...]
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[tool.robotpy]
|
||||
|
||||
# Version of robotpy this project depends on
|
||||
robotpy_version = "2024.3.2.2"
|
||||
robotpy_version = "2025.2.1"
|
||||
|
||||
# Which extra RobotPy components should be installed
|
||||
# -> equivalent to `pip install robotpy[extra1, ...]
|
||||
|
||||
Reference in New Issue
Block a user