thegooglecodearchive / healpy

Automatically exported from code.google.com/p/healpy
GNU General Public License v2.0
0 stars 0 forks source link

healpy.query_disc_func.query_disc undefined "work" error #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Try this in python, with healpy 0.9.6.3, on Ubuntu 9.10 or OpenSuse 11:

import healpy.query_disc_func as qdf
import numpy as np

v=np.array([-0.88749818, -0.0310863 ,  0.45976148])
pixlist=qdf.query_disc(128,v,1./60)

an "UnboundLocalError" is then thrown in query_disc on "return work"

Original issue reported on code.google.com by guilhem....@gmail.com on 18 Feb 2010 at 11:43

GoogleCodeExporter commented 9 years ago
I take it the issue is that there are no pixels within an arcminute of the 
vector at
this Nside.  Attached is a patch that fixes this and cleans up the code a 
little.  It
now returns and empty list.

Original comment by cjc...@gmail.com on 11 Mar 2010 at 7:43

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report and the patch.
Solved in trunk revision 84.

Original comment by cyrille....@gmail.com on 19 Apr 2010 at 5:01