ENH use np.squeeze instead of ravel
flake8
COSMIT + TST quiet test with cath_warning