Adapted code for numpy>1.20.0. #493

Merged Markus Scheidgen requested to merge hotfix-numpy into v0.9.10

Merge request reports