MNT: binary mask application to q is working, thanks @tacaswell