Skip to content

Commit

Permalink
fix bug in set_use_caps.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Alan Weaver committed Sep 21, 2015
1 parent 6b8b198 commit 52a5c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pydl/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pydl Changelog
* Improved test coverage.
* Fixed problem with the spheregroup code.
* Removed some code that is 100% redundant with astropy (*e.g.* ``angles_to_xyz``).

* Fixed bug in set_use_caps that was discovered on the IDL side.

0.3.0 (2015-02-20)
------------------
Expand Down
2 changes: 1 addition & 1 deletion pydl/pydlutils/mangle/set_use_caps.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def set_use_caps(x,cm,polygon_use_caps,add=False,tol=1.0e-10,allow_doubles=False
if is_cap_used(use_caps,i):
for j in range(i+1,len(cm)):
if is_cap_used(use_caps,j):
if np.sum(x[i]-x[j])**2 < t2:
if np.sum((x[i]-x[j])**2) < t2:
if ((np.absolute(cm[i]-cm[j]) < tol) or
((cm[i] + cm[j]) < tol and not allow_neg_doubles)):
#
Expand Down

0 comments on commit 52a5c76

Please sign in to comment.