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
Pablo Piskunow
kwant
Commits
ebee35bb
Commit
ebee35bb
authored
Mar 02, 2021
by
Viacheslav Ostroukh
🚲
Browse files
get rid of deprecated np.complex, use complex instead
parent
6f85b0f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
kwant/operator.pyx
View file @
ebee35bb
...
...
@@ -859,7 +859,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