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
14f7021f
Commit
14f7021f
authored
8 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
CI: check for other whitespace blunders as well
parent
54d82c08
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
doc/source/pre/whatsnew/1.3.rst
+1
-1
1 addition, 1 deletion
doc/source/pre/whatsnew/1.3.rst
kwant/physics/tests/test_leads.py
+1
-1
1 addition, 1 deletion
kwant/physics/tests/test_leads.py
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
2
−
2
View file @
14f7021f
...
...
@@ -33,10 +33,10 @@ build package:
untracked
:
true
expire_in
:
1 hour
check
for
whitespace
:
check whitespace
style
:
stage
:
build
script
:
-
"
!
for
f
in
`git
ls-files
|
grep
-v
\\
.diff$`;
do
file
$f
|
grep
-q
'
text'
&&
grep
-
l
'[[:blank:]]$'
$f;
done
|
grep
.
>&2"
-
"
!
for
f
in
`git
ls-files
|
grep
-v
\\
.diff$`;
do
file
$f
|
grep
-q
'
text'
||
continue;
grep
-
q
'[[:blank:]]$'
$f
&&
echo
$f:
trailing
whitespace;
tail
-n1
$f
|
read
-r
_
||
echo
$f:
no
newline
at
end
of
file;
tail
-n1
$f
|
grep
-q
'^$'
&&
echo
$f:
empty
line
at
end
of
file
;
done
|
grep
.
>&2"
allow_failure
:
true
check for dependencies installed
:
...
...
This diff is collapsed.
Click to expand it.
doc/source/pre/whatsnew/1.3.rst
+
1
−
1
View file @
14f7021f
...
...
@@ -61,4 +61,4 @@ namely time-reversal symmetry, particle-hole symmetry and chiral (or
sublattice) symmetry. When one or more of these symmetries are present,
and it can be useful to have leads with scattering states that reflect this.
It is now possible to these discrete symmetries in Kwant, which then uses
them to construct scattering states that are accordingly symmetric.
\ No newline at end of file
them to construct scattering states that are accordingly symmetric.
This diff is collapsed.
Click to expand it.
kwant/physics/tests/test_leads.py
+
1
−
1
View file @
14f7021f
...
...
@@ -604,4 +604,4 @@ def test_PHS_TRIM():
assert_almost_equal
(
phs_modes
[:,
1
::
2
],
p_mat
.
dot
(
phs_modes
[:,
::
2
].
conj
()),
err_msg
=
'
PHS broken at a TRIM in
'
+
sym
)
assert_almost_equal
(
phs_modes
.
T
.
conj
().
dot
(
phs_modes
),
np
.
eye
(
phs_modes
.
shape
[
1
]),
err_msg
=
'
Modes are not orthonormal, TRIM PHS in
'
+
sym
)
\ No newline at end of file
err_msg
=
'
Modes are not orthonormal, TRIM PHS in
'
+
sym
)
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