Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
7e00a933
Commit
7e00a933
authored
11 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
make examples/square.py work again
parent
9945ee54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/square.py
+2
-2
2 additions, 2 deletions
examples/square.py
with
2 additions
and
2 deletions
examples/square.py
+
2
−
2
View file @
7e00a933
...
...
@@ -8,7 +8,7 @@ from matplotlib import pyplot
import
kwant
from
kwant.physics.selfenergy
import
square_self_energy
__all__
=
[
'
System
'
]
__all__
=
[
'
System
'
]
class
Lead
(
object
):
def
__init__
(
self
,
width
,
t
,
potential
):
...
...
@@ -16,7 +16,7 @@ class Lead(object):
self
.
t
=
t
self
.
potential
=
potential
def
self_energy
(
self
,
fermi_energy
):
def
self_energy
(
self
,
fermi_energy
,
args
=
()
):
return
square_self_energy
(
self
.
width
,
self
.
t
,
self
.
potential
,
fermi_energy
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment