Merge branch 'fix/ndarray_deprecation_warnings' into 'stable'

Fix Numpy-related deprecation warnings

See merge request !397
26 jobs for stable in 45 minutes and 29 seconds (queued for 9 seconds)