Skip to content

Commit

Permalink
Merge pull request #13 from ParallelDots/improvements
Browse files Browse the repository at this point in the history
Fix: Improve within angle search method
  • Loading branch information
ahwankumar authored Jul 12, 2024
2 parents 793ea11 + 9734829 commit 967622a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions retailtree/retailtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,13 @@ def __fetching_ann_in_range(self, result_dict, min_angle, max_angle, result_lst)
elif max_angle is None and min_angle < result_dict['angle']:
result_lst.append(result_dict)
elif min_angle is not None and max_angle is not None:
if min_angle <= result_dict['angle'] <= max_angle:
result_lst.append(result_dict)
else:
pass
if min_angle <= max_angle:
if min_angle <= result_dict['angle'] <= max_angle:
result_lst.append(result_dict)
else:
if min_angle <= result_dict['angle'] or max_angle >= result_dict['angle']:
result_lst.append(result_dict)

# if min_angle is None:
return result_lst

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def read(fname):

setup(
name="retailtree",
version="1.3.1",
version="1.3.2",
long_description=read("README.md"),
long_description_content_type='text/markdown',
packages=find_packages(),
Expand Down

0 comments on commit 967622a

Please sign in to comment.