Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
kwant
Commits
9e1361b8
Commit
9e1361b8
authored
Mar 02, 2021
by
Viacheslav Ostroukh
🚲
Browse files
get rid of deprecated np.complex, use complex instead
parent
b09dfe52
Pipeline
#75479
passed with stages
in 8 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kwant/operator.pyx
View file @
9e1361b8
...
...
@@ -580,7 +580,7 @@ cdef class _LocalOperator:
tot_norbs
=
_get_tot_norbs
(
self
.
syst
)
if
ket
.
shape
!=
(
tot_norbs
,):
raise
ValueError
(
'ket vector is incorrect shape'
)
result
=
np
.
zeros
((
tot_norbs
,),
dtype
=
np
.
complex
)
result
=
np
.
zeros
((
tot_norbs
,),
dtype
=
complex
)
self
.
_operate
(
out_data
=
result
,
bra
=
None
,
ket
=
ket
,
args
=
args
,
params
=
params
,
op
=
ACT
)
return
result
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment