---Ensure ntot_reg is a numpy array.