Skip to content

Commit

Permalink
chore(docs): improve
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Jan 16, 2025
1 parent c66d0db commit 9f9f445
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions differt/src/differt/geometry/_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ def mask_duplicate_objects(self, axis: int = -1) -> Self:
Args:
axis: The batch axis along which the unique values are computed.
It defaults to the last axis, which is the axis where
different path candidates are stored when generating
paths with
:meth:`TriangleScene.compute_paths<differt.scene.TriangleScene.compute_paths>`.
Returns:
A new paths instance with masked duplicate objects.
Expand Down
8 changes: 8 additions & 0 deletions differt/src/differt/scene/_triangle_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,14 @@ def compute_paths( # noqa: C901
The paths, as class wrapping path vertices, object indices, and a masked
identify valid paths.
The returned paths have the following batch dimensions:
* ``[*transmitters_batch *receivers_batch num_path_candidates]``,
* ``[*transmitters_batch *receivers_batch chunk_size]``,
* or ``[*transmitters_batch *receivers_batch num_rays]``,
depending on the method used.
Raises:
ValueError: If neither ``order`` nor ``path_candidates`` has been provided,
or if both have been provided simultaneously.
Expand Down

0 comments on commit 9f9f445

Please sign in to comment.