Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Fix python comments #333

Merged
merged 4 commits into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion source/docs/programming/photonlib/getting-target-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Each pipeline result has a ``hasTargets()``/``HasTargets()`` (Java and C++ respe

.. code-block:: python

// Check if the latest result has any targets.
# Check if the latest result has any targets.
hasTargets = result.hasTargets()

.. warning:: In Java/C++, You must *always* check if the result has a target via ``hasTargets()``/``HasTargets()`` before getting targets or else you may get a null pointer exception. Further, you must use the same result in every subsequent call in that loop.
Expand Down Expand Up @@ -107,6 +107,7 @@ You can get a list of tracked targets using the ``getTargets()``/``GetTargets()`

.. code-block:: python

# Get a list of currently tracked targets.
targets = result.getTargets()

Getting the Best Target
Expand Down
Loading