Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Oct 18, 2024
1 parent c2ce992 commit 12b8698
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion differt-core/src/rt/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions docs/source/notebooks/advanced_path_tracing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
Expand Down Expand Up @@ -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**."
]
Expand All @@ -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<differt_core.rt.graph.CompleteGraph>`\n",
"to a {class}`DiGraph<differt_core.rt.graph.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)."
]
},
{
Expand Down

0 comments on commit 12b8698

Please sign in to comment.