Turn numpy deprecation warnings into errors