Skip to content

Commit b2d7ef2

Browse files
committed
reduced randomness for breaking geometrical divide-by-zero cases
1 parent b1cd283 commit b2d7ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ratinabox/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ def vector_intercepts(vector_list_a, vector_list_b, return_collisions=False):
6262
vector_list_a = vector_list_a.reshape(-1, 2, 2)
6363
vector_list_b = vector_list_b.reshape(-1, 2, 2)
6464
vector_list_a = vector_list_a + np.random.normal(
65-
scale=1e-6, size=vector_list_a.shape
65+
scale=1e-9, size=vector_list_a.shape
6666
)
6767
vector_list_b = vector_list_b + np.random.normal(
68-
scale=1e-6, size=vector_list_b.shape
68+
scale=1e-9, size=vector_list_b.shape
6969
)
7070

7171
N_a = vector_list_a.shape[0]

0 commit comments

Comments
 (0)