Skip to content

Commit

Permalink
fix(lib): oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed May 14, 2024
1 parent 689feb2 commit 940d2cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions differt2d/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ class RIS(Wall, eqx.Module):
with respect to its normal, regardless of the incident vector.
"""

phi: Float[Array, " "] = eqx.field(default_factory=jnp.array(jnp.pi / 4))
phi: Float[Array, " "] = eqx.field(default_factory=lambda: jnp.array(jnp.pi / 4))
"""The constant angle of reflection."""

@jax.jit
Expand Down Expand Up @@ -689,7 +689,9 @@ def intersects_with_objects(
:return: Whether this path intersects any of the objects, ().
"""
interacting_object_indices = [-1] + [i for i in path_candidate] + [-1]
intersects = false_value(approx=approx) # TODO(fixme): wtf this is a NumPy array?
intersects = false_value(
approx=approx
) # TODO(fixme): wtf this is a NumPy array?

for i in range(self.points.shape[0] - 1):
ray_path = self.points[i : i + 2, :]
Expand Down

0 comments on commit 940d2cd

Please sign in to comment.