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
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Michael Wimmer
kwant
Commits
e89be101
Commit
e89be101
authored
11 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
partial rewrite of CONTRIBUTE
parent
812640e6
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
CONTRIBUTE
+55
-43
55 additions, 43 deletions
CONTRIBUTE
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
doc/source/pre/index.rst
+1
-1
1 addition, 1 deletion
doc/source/pre/index.rst
with
57 additions
and
45 deletions
CONTRIBUTE
+
55
−
43
View file @
e89be101
...
@@ -2,55 +2,55 @@
...
@@ -2,55 +2,55 @@
Contributing to Kwant and reporting problems
Contributing to Kwant and reporting problems
============================================
============================================
We view Kwant as not just a package with fixed functionality, but also as a
We see Kwant not just as a package with fixed functionality, but rather as a
framework to implement different physics-related algorithms using a common set
framework for implementing different physics-related algorithms using a common
of concepts and, if possible, a shared interface. We have designed it leaving
set of concepts and, if possible, a shared interface. We have designed it
room for growth, and planning to extend it.
leaving room for growth, and plan to keep extending it.
We welcome both external contributions that are well-integrated with Kwant's
core functionality, such as new solvers type, or algorithms for calculation of
other observables, as well as code modules that are relatively independent but
useful with Kwant (such as the random matrix theory module `kwant.rmt`). We
also welcome contributions to the reference documentation and the tutorial. It
is also possible to add complete tutorial sections that illustrate a physical
phenomenon using Kwant.
The complete development history of Kwant is `publicly available
<http://git.kwant-project.org/kwant>`_. Any external contribution will be
clearly marked as such, and papers where it is described (if any) will be
properly mentioned. Contact us if you are interested in submitting a
contribution.
When you encounter a bug, first try to reproduce it with as simple of a system
as possible. Double-check with Kwant documentation that what you observe is
actually a bug in Kwant. Then please email the bug report the Kwant `mailing
list <mailto:kwant-discuss@kwant-project.org>`_. A bug report should contain
the steps required to reproduce the bug, preferably with a simple script that
reproduces the bug attached. It should also include a description of the bug
(i.e. what exactly goes wrong).
Technical advice
----------------
We use the version control system `Git <http://git-scm.com/>`_ to coordinate the
External contributions to Kwant are highly welcome. You can help to advance the
development of Kwant. If you are new to Git, we invite you to learn its
project not only by writing code, but also by reporting bugs, and
basics. (There's a plethora of information available on the Web.)
fixing/improving the documentation. A mailing list TODO: add link (also
usable through a web interface (TODO: add link) ) is available for discussions.
It is best to base your development on the latest version of Kwant. ::
If you have some code that works well with Kwant, or extends it in some useful
way, please consider sharing it. Any external contribution will be clearly
marked as such, and relevant papers will be added to the list of :doc:`suggested
acknowledgements <citing>`. The complete development history is available
through a `web interface <http://git.kwant-project.org/kwant>`_.
git clone http://git.kwant-project.org/kwant
Reporiting bugs
---------------
To work on Kwant itself it is useful to build it in-place so that it does not
If you encounter a problem with Kwant, first try to reproduce it with as simple
have to be re-installed after each change. This can be done with the following
a system as possible. Double-check with the documentation that what you observe
command ::
is actually a bug in Kwant. If you think it is, please check whether the problem
is already known by searching the mailing list. (TODO: tell how).
python setup.py build_ext -i
If the problem is not known yet, please email a bug report to the `Kwant mailing
list <mailto:kwant-discuss@kwant-project.org>`_. A report should contain:
The ``kwant`` subdirectory of the source distribution will be thus turned into
* The versions of software you are using (Kwant, Python, operating system, etc.)
a proper Python package that can be imported. To be able to import Kwant from
within Python, one can either work in the root directory of the distribution
* A description of the problem, i.e. what exactly goes wrong.
(where the subdirectory ``kwant`` is located), or make a (symbolic) link from
somewhere in the Python search path to the the package subdirectory.
* Enough information to reproduce the bug, preferably in the form of a simple
script.
How to contribute
-----------------
We use the version control system `Git <http://git-scm.com/>`_ to coordinate the
development of Kwant. If you are new to Git, we invite you to learn its basics.
(There's a plethora of information available on the Web.) Kwant's Git
repository contains not only the source code, but also all of the reference
documentation and the tutorial.
It is best to base your work on the latest version of Kwant::
git clone http://git.kwant-project.org/kwant
Then you can modify the code, and build Kwant and the documentation as described
in the :doc:`installation instructions <install>`.
Some things to keep in mind:
Some things to keep in mind:
...
@@ -64,3 +64,15 @@ Some things to keep in mind:
...
@@ -64,3 +64,15 @@ Some things to keep in mind:
* Write tests for all the important functionality you add. Be sure not to
* Write tests for all the important functionality you add. Be sure not to
break existing tests.
break existing tests.
A useful trick for working on the source code is to build in-place so that there
is no need to re-install after each change. This can be done with the following
command ::
python setup.py build_ext -i
The ``kwant`` subdirectory of the source distribution will be thus turned into
a proper Python package that can be imported. To be able to import Kwant from
within Python, one can either work in the root directory of the distribution
(where the subdirectory ``kwant`` is located), or make a (symbolic) link from
somewhere in the Python search path to the the package subdirectory.
This diff is collapsed.
Click to expand it.
LICENSE
+
1
−
1
View file @
e89be101
=============
=============
Kwant
L
icense
Kwant
l
icense
=============
=============
(This license applies to all files of this distribution except those within the
(This license applies to all files of this distribution except those within the
...
...
This diff is collapsed.
Click to expand it.
doc/source/pre/index.rst
+
1
−
1
View file @
e89be101
...
@@ -9,5 +9,5 @@ Preliminaries
...
@@ -9,5 +9,5 @@ Preliminaries
install
install
authors
authors
citing
citing
license
contribute
contribute
license
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