BF: Changed from numpy.hstack to numpy.vstack as suggested by MrBago.