praxes / hexrd

Legacy hexrd repository (python2.7)
http://hexrd.readthedocs.org
14 stars 42 forks source link

compute_areas_2 undefined without numba #101

Closed schluenz closed 8 years ago

schluenz commented 8 years ago

Hi,

without numba being installed, hexrd complains about:

File "/usr/lib64/python2.7/site-packages/hexrd/xrd/xrdutil.py", line 3652, in npdiv=1, quiet=False, compute_areas_func=compute_areas_2): NameError: name 'compute_areas_2' is not defined

As far as I can see compute_areas_2 is only declared within an "if USE_NUMBA" block.

Cheers, Frank.

joelvbernier commented 8 years ago

I will change the defaults to use the non-Numba "compute_areas"

Sent from my iPhone

On Nov 25, 2015, at 3:50 AM, schluenz notifications@github.com wrote:

Hi,

without numba being installed, hexrd complains about:

File "/usr/lib64/python2.7/site-packages/hexrd/xrd/xrdutil.py", line 3652, in npdiv=1, quiet=False, compute_areas_func=compute_areas_2): NameError: name 'compute_areas_2' is not defined

As far as I can see compute_areas_2 is only declared within an "if USE_NUMBA" block.

Cheers, Frank.

— Reply to this email directly or view it on GitHub.

joelvbernier commented 8 years ago

Fixed in praxes/master.

On Nov 25, 2015, at 03:50 AM, schluenz notifications@github.com wrote:

Hi, without numba being installed, hexrd complains about: File "/usr/lib64/python2.7/site-packages/hexrd/xrd/xrdutil.py", line 3652, in npdiv=1, quiet=False, compute_areas_func=compute_areas_2): NameError: name 'compute_areas_2' is not defined As far as I can see compute_areas_2 is only declared within an "if USE_NUMBA" block. Cheers, Frank. — Reply to this email directly or view it on GitHub.

joelvbernier commented 8 years ago

Fixed now, with reference to the compute_areas functions in gridutil, which has a non-numbs fallback.