Adapted code for numpy>1.20.0. #493

11 jobs for hotfix-numpy in 32 minutes and 31 seconds (queued for 3 seconds)