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
Anton Akhmerov
kwant
Commits
828fe368
Commit
828fe368
authored
9 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
silence warnings with numpydoc 0.4
parent
512e8426
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/lattice.py
+10
-12
10 additions, 12 deletions
kwant/lattice.py
with
10 additions
and
12 deletions
kwant/lattice.py
+
10
−
12
View file @
828fe368
...
...
@@ -70,12 +70,6 @@ class Polyatomic(object):
sublattices are obtained by appending their number to the name of the
lattice.
Attributes
----------
prim_vecs : 2d tinyarray of floats
``prim_vecs[i]`` is the `i`-th primitive basis vector of the lattice
Sublattices belonging to this lattice.
Raises
------
ValueError
...
...
@@ -354,6 +348,12 @@ class Polyatomic(object):
@property
def
prim_vecs
(
self
):
"""
(sequence of vectors) Primitive vectors
`prim_vecs[i]`` is the `i`-th primitive basis vector of the lattice
displacement of the lattice origin from the real space coordinates
origin.
"""
return
np
.
array
(
self
.
_prim_vecs
)
def
vec
(
self
,
int_vec
):
...
...
@@ -394,19 +394,17 @@ class Monatomic(builder.SiteFamily, Polyatomic):
Parameters
----------
prim_vecs : 2d array-like of floats
prim_vecs
s
: 2d array-like of floats
Primitive vectors of the Bravais lattice.
offset : vector of floats
Displacement of the lattice origin from the real space
coordinates origin.
Attributes
----------
offset : vector
Displacement of the lattice origin from the real space
coordinates origin.
prim_vecs : sequence of vectors
``prim_vecs[i]`` is the `i`-th primitive basis vector of the lattice
``offset`` : vector
Displacement of the lattice origin from the real space coordinates origin
"""
def
__init__
(
self
,
prim_vecs
,
offset
=
None
,
name
=
''
):
...
...
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