Merge branch 'hotfix-numpy' into 'v0.9.10'

Adapted code for numpy>1.20.0. #493

See merge request !252
12 jobs for v0.9.10 in 37 minutes and 13 seconds (queued for 2 seconds)