From 12b8698e2994b877e43659cccabeb99beaa211e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Fri, 18 Oct 2024 17:42:00 +0200 Subject: [PATCH] fixes --- differt-core/src/rt/graph.rs | 2 +- docs/source/notebooks/advanced_path_tracing.ipynb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/differt-core/src/rt/graph.rs b/differt-core/src/rt/graph.rs index a5188321..908f2943 100644 --- a/differt-core/src/rt/graph.rs +++ b/differt-core/src/rt/graph.rs @@ -646,7 +646,7 @@ pub mod directed { ); self.edges_list .iter_mut() - .zip(to_adjacency.into_iter()) + .zip(to_adjacency) .for_each(|(edges, &is_adjacent)| { if is_adjacent { edges.push(to) diff --git a/docs/source/notebooks/advanced_path_tracing.ipynb b/docs/source/notebooks/advanced_path_tracing.ipynb index 89e4400a..766af6ec 100644 --- a/docs/source/notebooks/advanced_path_tracing.ipynb +++ b/docs/source/notebooks/advanced_path_tracing.ipynb @@ -439,7 +439,7 @@ "\n", "### Numbers getting crazy\n", "\n", - "To illustrate what we said above, we will load a much large scene that contains quite a few objects, i.e., triangles.\n", + "To illustrate what we said above, we will load a much larger scene that contains quite a few objects, i.e., triangles.\n", "\n", "A transmitter (TX) and a receiver (RX) are placed in the scene as examples." ] @@ -652,7 +652,7 @@ "id": "7c0354a8", "metadata": {}, "source": [ - "It is also possible get the number of visible quadrilaterals by\n", + "It is also possible to get the number of visible quadrilaterals by\n", "counting visible triangles by pairs. If any of the two triangles\n", "forming a quadrilateral is visible, then this quadrilateral **is considered visible**." ] @@ -678,10 +678,10 @@ "\n", "As expected, the number of path candidates get reduced to about 44% of the previous value.\n", "\n", - "However, 44% visibility is probably to high to switch from a\n", + "However, 44% visibility is probably too high to switch from a\n", "{class}`CompleteGraph`\n", "to a {class}`DiGraph`,\n", - "as iterating through the later is quite slower (because the former is optimized)." + "as iterating through the latter is quite slower (because the former is optimized)." ] }, {