Just a note: the reason why I used a warnings filter here instead of verifying the message in a test is that this warning comes upstream from numpy. It's not something issued directly by xray.