Skip to content

Commit

Permalink
invalid buffer size in ang2pix(..., lonlat=True)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntessore committed Nov 1, 2022
1 parent cf063c0 commit 54a5d1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/healpix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ def ang2pix(nside, theta, phi, nest=False, lonlat=False):
['buffered', 'external_loop', 'zerosize_ok'],
[['readonly']]*2 + [['writeonly', 'allocate']]*1,
[None, None, int]) as it:
theta, phi = None, None
for lon, lat, ipix in it:
theta, phi = thetaphi_from_lonlat(lon, lat, theta, phi)
theta, phi = thetaphi_from_lonlat(lon, lat)
if nest:
_chp.ang2nest(nside, theta, phi, ipix)
else:
Expand Down

0 comments on commit 54a5d1e

Please sign in to comment.