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)
latest
Status Name Job ID Coverage
  Build Env
manual build-env:conda #224154
allowed to fail manual
manual build-env:debian #224152
allowed to fail manual
manual build-env:default #224155
allowed to fail manual
manual build-env:ubuntu #224150
allowed to fail manual
 
  Build
passed build:bleeding-edge #224167

00:17:31

passed build:debian #224159

00:03:52

passed build:latest #224165

00:03:21

passed build:no-extras #224163

00:03:47

passed build:stable #224161

00:02:23

passed build:ubuntu #224157

00:02:54

 
  Test
passed build PDF documentation #224189

00:06:53

passed build documentation #224187

00:06:37

failed check for broken links in doc #224191
allowed to fail

00:00:54

passed check for dependencies installed #224171

00:00:28

passed check whitespace style #224169

00:02:20

passed coverage:latest #224185

00:27:28

passed test:bleeding-edge #224183

00:13:20

passed test:debian #224179

00:03:27

passed test:latest #224181

00:02:50

passed test:no-extras #224175

00:01:57

passed test:stable #224172

00:03:37

passed test:ubuntu #224177

00:03:22

 
  Deploy
manual remove_coverage #224196
allowed to fail manual
manual remove_docs #224200
allowed to fail manual
passed upload coverage #224194

00:00:24

passed upload documentation to the test server #224197

00:00:22

 
Name Stage Failure
failed
check for broken links in doc Test
( reference/kwant: line   16) ok        https://www.python.org/dev/peps/pep-0440/
( pre/citing: line 15) redirect https://iopscience.iop.org/1367-2630/16/6/063065/article - permanently to https://iopscience.iop.org/article/10.1088/1367-2630/16/6/063065
(tutorial/first_steps: line 328) ok https://xkcd.com/353/
build finished with problems, 156 warnings.
Makefile:119: recipe for target 'linkcheck' failed
make: *** [linkcheck] Error 1
make: Leaving directory '/builds/kwant/kwant/doc'
Cleaning up file based variables
ERROR: Job failed: exit code 1