prevent negative circle radius

This commit is contained in:
HappyZ 2018-02-08 14:10:59 -06:00
parent a8c2c025e1
commit 9a90d50b6d
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def trilateration2d(mydict, bounds=None, verbose=False):
if mydict[loc][1]:
# create multiple circles based on std
for r in arange(
mydict[loc][0] - mydict[loc][1],
max(mydict[loc][0] - mydict[loc][1], 0.01),
mydict[loc][0] + mydict[loc][1],
10
):