Fixed bug generating a numpy array of weighted means using PyPy.
Fixed bug generating a numpy array of weighted means using PyPy.

Obtaining nvariables in find_optimal_block was failing.

hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande