Repository navigation
docs: add Python photonlib snippets and fix code tabs #1914 - #2599
Merged
Merged
Conversation
Mixed rli/code-block tab-set-code groups broke the Python tabs. Switched those to tab-set/tab-item and filled the photonlibpy examples that were still marked coming soon.
mcm001
approved these changes
Sep 3, 2026
mcm001
left a comment
Contributor
There was a problem hiding this comment.
Note that with 2027 the examples may need to be rewritten so we'll have to update RLIs again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
What changed?
Python tabs on Getting Target Data and the pose estimation example mixed
rliwithcode-blockundertab-set-code, so the Python tab did not work. Those groups are nowtab-set/tab-itemlike the aiming example.I also filled the photonlibpy snippets that were still "Coming Soon" on driver mode, pipeline index, latency, LEDs, best target, and using-target-data (wpimath equivalents, since photonlibpy has no PhotonUtils). Method names now mention Python where they differ (
setLEDMode,getMinAreaRectCorners).Why?
Python docs were incomplete or the tabs did not switch.
Testing
I checked the snippets against photonlibpy on main (
PhotonCamera.setDriverMode,setPipelineIndex,setLEDMode,PhotonPipelineResult.getBestTarget/getLatencyMillis,VisionSystemSim). Did not rebuild the Sphinx site.Related Issues
Closes #1914
AI Disclosure
Merge Checklist
Additional Checks (if applicable)