diff --git a/ACKNOWLEDGEMENTS b/ACKNOWLEDGEMENTS new file mode 100644 index 0000000000000000000000000000000000000000..fed455829282d00b10a7622ec69812b6c83f2fc1 --- /dev/null +++ b/ACKNOWLEDGEMENTS @@ -0,0 +1,5 @@ +========================== +Suggested acknowledgements +========================== + +To be written. diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000000000000000000000000000000000000..3da5f15918df85582d1422d39488b2c22a9bbdf6 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,23 @@ +================ +Authors of kwant +================ + +The principal developers of kwant are (in alphabetic order) + +* Anton R. Akhmerov <anton.akhmerov@gmail.com> +* Christoph W. Groth <christoph.groth@cea.fr> +* Xavier Waintal <xavier.waintal@cea.fr> +* Michael Wimmer <wimmer@lorentz.leidenuniv.nl> + +The contributions of Christoph and Xavier are part of their work at `CEA +<http://cea.fr>`_, the French Commissariat à l'énergie atomique et aux énergies +alternatives. + +Other people that have contributed to kwant include + +* Daniel Jaschke + +------------------------------------------------------------- + +To find out who exactly wrote a certain part of kwant, please use the "blame" +feature of `git <http://git-scm.com/>`_, the version control system. diff --git a/LICENSE b/LICENSE index 7ca50d880e51c4b4d16d60ef0fbfe7783ebcb340..428c79dd8a2d1bbaa16cb3e9805763accb97695f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,30 @@ -License -======= +============= +kwant License +============= -This software (kwant) is NOT TO BE DISTRIBUTED, neither in part nor as a whole. +(This license applies to all files of this distribution except those within the +``doc/sphinxext`` subdirectory for which ``doc/sphinxext/LICENSE.txt`` +applies.) -The only exception to this is the ``doc/sphinxext`` subdirectory, which is free -software. (See the file ``LICENSE.txt`` in that subdirectory.) +Copyright 2011-2013, kwant authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/MANIFEST.in b/MANIFEST.in index 94cd46b990f7b4e1b274f4e9ec1f8eb57c4af42e..18a513a1919e35c6dd671474cc962510afba7e23 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,7 +2,7 @@ # in addition to the default ones. include MANIFEST.in -include INSTALL LICENSE TODO +include INSTALL LICENSE AUTHORS ACKNOWLEDGEMENTS TODO # We explicitly include both pyx and c files, so that both are shipped in # source tarballs independently of whether "setup.py sdist" is run with diff --git a/README b/README index 23f3e55ec35703ce3a617b0db29ef5abc9d83fdf..0e41e83dae5f5721184829bfcf49a425a5755073 100644 --- a/README +++ b/README @@ -7,6 +7,5 @@ various Green's functions, and local density of states. Being extensible and modular, kwant has been designed to be useful for other computations involving tight-binding Hamiltonians as well. -See the file INSTALL for installation instructions and LICENSE for legal -information. A tutorial for new users and complete reference documentation are -available. +See also the files INSTALL, LICENSE, AUTHORS, and ACKNOWLEDGEMENTS in this +directory. diff --git a/doc/Makefile b/doc/Makefile index 36a2cf09d1fa68cc17b2c4f2707b0acf0ce77238..452ca2b5fa933fa301537e072ad71ac64f56221f 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,12 @@ # Makefile for Sphinx documentation + +# Copyright 2011-2013 kwant authors. # +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. # You can set these variables from the command line. SPHINXOPTS = diff --git a/doc/source/acknowledgements.rst b/doc/source/acknowledgements.rst new file mode 100644 index 0000000000000000000000000000000000000000..a57bfd60d321fd1d107ddaee20109f46195b2dd9 --- /dev/null +++ b/doc/source/acknowledgements.rst @@ -0,0 +1 @@ +.. include:: ../../ACKNOWLEDGEMENTS diff --git a/doc/source/authors.rst b/doc/source/authors.rst new file mode 100644 index 0000000000000000000000000000000000000000..50781890eabc6df2a5eb05e21e15ee40b9ee80c6 --- /dev/null +++ b/doc/source/authors.rst @@ -0,0 +1 @@ +.. include:: ../../AUTHORS diff --git a/doc/source/conf.py b/doc/source/conf.py index 0748681c66658b61315972ac0db2f3a2605adf11..63c68cc3d34bb27894eb88a00b90016a5e3febc9 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -39,7 +39,7 @@ master_doc = 'index' # General information about the project. project = u'kwant' -copyright = u'2011-2012, A. R. Akhmerov, C. W. Groth, X. Waintal, M. Wimmer' +copyright = u'2011-2012, kwant Developers' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/doc/source/index.rst b/doc/source/index.rst index b22d04a69f48abab6bdcdb2a0c2130f15ba172e7..5708837c1a7dde9a0ae538cb5eb5ad437a388756 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -3,22 +3,26 @@ kwant documentation =================== .. include:: ../../README - :end-before: See the file INSTALL + :end-before: See also the files -.. toctree:: - :maxdepth: 1 - - Installation instructions <install> +Researchers, please note that even though :doc:`kwant is Free Software +<license>`, scientific integrity requires to give appropriate credit. If you +write a scientific paper whose results have been obtained thanks to kwant, +please :doc:`acknowledge <acknowledgements>` the work of the :doc:`people that +have made it possible <authors>`. .. toctree:: :maxdepth: 1 license + authors + acknowledgements .. toctree:: :maxdepth: 1 whatsnew/index + install .. toctree:: :maxdepth: 2 diff --git a/kwant/__init__.py b/kwant/__init__.py index 321dfa8237f911bbf4351eb2360625b8138d63ba..0fe7727e5b518bd3d1616908516643f14d8cb739 100644 --- a/kwant/__init__.py +++ b/kwant/__init__.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['system', 'version', 'builder', 'lattice', 'solvers'] for module in __all__: exec 'from . import {0}'.format(module) diff --git a/kwant/_system.pyx b/kwant/_system.pyx index 7523864c4df833c5b6b20bfe4ccaff4e73205423..d4821e866422268f4b0dbc4e956806d28a951984 100644 --- a/kwant/_system.pyx +++ b/kwant/_system.pyx @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + cimport cython import tinyarray as ta import numpy as np diff --git a/kwant/builder.py b/kwant/builder.py index ee88d82cfc2c726944b9f695ea73402871592f65..2c2d620fd374327fcaa51671b0c4e2a34334daa6 100644 --- a/kwant/builder.py +++ b/kwant/builder.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from __future__ import division __all__ = ['Builder', 'Site', 'SiteGroup', 'SimpleSiteGroup', 'Symmetry', diff --git a/kwant/graph/__init__.py b/kwant/graph/__init__.py index 4a3dafce72bd31eaad716984c060f0f0d31167de..cb2a5f98c0d0fc471f1497c637581ab4f97fcab1 100644 --- a/kwant/graph/__init__.py +++ b/kwant/graph/__init__.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Functionality for graphs""" # Merge the public interface of all submodules. diff --git a/kwant/graph/c_scotch.pxd b/kwant/graph/c_scotch.pxd index c1b4ab31a90b76ffc242627f6f509c31c08a3644..770c58a1ed08dddcbcbd4c86587aec9bd6eedd12 100644 --- a/kwant/graph/c_scotch.pxd +++ b/kwant/graph/c_scotch.pxd @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from libc.stdio cimport FILE cdef extern from "scotch.h": diff --git a/kwant/graph/c_slicer.pxd b/kwant/graph/c_slicer.pxd index c248d8023e11ff62a71fa8767aaa8a6abc981331..9aee2b71dbf4070122d4e76d70f4137981f83be8 100644 --- a/kwant/graph/c_slicer.pxd +++ b/kwant/graph/c_slicer.pxd @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from defs cimport gint cdef extern from "c_slicer/slicer.h": diff --git a/kwant/graph/c_slicer/bucket_list.h b/kwant/graph/c_slicer/bucket_list.h index 898124bfde97f89e77968df1eedf62c9adf943c8..f186554ab656408af786f95f62aeb7ba226a405e 100644 --- a/kwant/graph/c_slicer/bucket_list.h +++ b/kwant/graph/c_slicer/bucket_list.h @@ -1,3 +1,11 @@ +// Copyright 2011-2013 kwant authors. +// +// This file is part of kwant. It is subject to the license terms in the +// LICENSE file found in the top-level directory of this distribution and at +// http://kwant-project.org/license. A list of kwant authors can be found in +// the AUTHORS file at the top-level directory of this distribution and at +// http://kwant-project.org/authors. + #ifndef BUCKET_LIST_H #define BUCKET_LIST_H diff --git a/kwant/graph/c_slicer/graphwrap.h b/kwant/graph/c_slicer/graphwrap.h index cf483ce6685b37175d604355f761c163a50e3d60..7275a23dd6c8c94321cc007b815d5fb91edf8517 100644 --- a/kwant/graph/c_slicer/graphwrap.h +++ b/kwant/graph/c_slicer/graphwrap.h @@ -1,3 +1,11 @@ +// Copyright 2011-2013 kwant authors. +// +// This file is part of kwant. It is subject to the license terms in the +// LICENSE file found in the top-level directory of this distribution and at +// http://kwant-project.org/license. A list of kwant authors can be found in +// the AUTHORS file at the top-level directory of this distribution and at +// http://kwant-project.org/authors. + //-*-C++-*- #ifndef _GRAPH_WRAPPER_H #define _GRAPH_WRAPPER_H diff --git a/kwant/graph/c_slicer/partitioner.cc b/kwant/graph/c_slicer/partitioner.cc index 1df24b98696fd5120cbbee6aad4cbcee4d4b4e11..a021773a8a756d3f7ecde39df5b458278492fe4b 100644 --- a/kwant/graph/c_slicer/partitioner.cc +++ b/kwant/graph/c_slicer/partitioner.cc @@ -1,3 +1,11 @@ +// Copyright 2011-2013 kwant authors. +// +// This file is part of kwant. It is subject to the license terms in the +// LICENSE file found in the top-level directory of this distribution and at +// http://kwant-project.org/license. A list of kwant authors can be found in +// the AUTHORS file at the top-level directory of this distribution and at +// http://kwant-project.org/authors. + #include "partitioner.h" //---------------------------------------------------- diff --git a/kwant/graph/c_slicer/partitioner.h b/kwant/graph/c_slicer/partitioner.h index e742a68650c2cf54040144d035b14bc26a23471d..32486114c0c807c947e7875920fe006c6df78d94 100644 --- a/kwant/graph/c_slicer/partitioner.h +++ b/kwant/graph/c_slicer/partitioner.h @@ -1,3 +1,11 @@ +// Copyright 2011-2013 kwant authors. +// +// This file is part of kwant. It is subject to the license terms in the +// LICENSE file found in the top-level directory of this distribution and at +// http://kwant-project.org/license. A list of kwant authors can be found in +// the AUTHORS file at the top-level directory of this distribution and at +// http://kwant-project.org/authors. + //-*-C++-*- #ifndef _BLOCK_TRIDIAGONAL_PARTITIONER_H #define _BLOCK_TRIDIAGONAL_PARTITIONER_H diff --git a/kwant/graph/c_slicer/slicer.cc b/kwant/graph/c_slicer/slicer.cc index f55032780ea711de62881adee24e4f15f45df7eb..574469cf712041cac0c8a62cd597d7f695b0199b 100644 --- a/kwant/graph/c_slicer/slicer.cc +++ b/kwant/graph/c_slicer/slicer.cc @@ -1,3 +1,11 @@ +// Copyright 2011-2013 kwant authors. +// +// This file is part of kwant. It is subject to the license terms in the +// LICENSE file found in the top-level directory of this distribution and at +// http://kwant-project.org/license. A list of kwant authors can be found in +// the AUTHORS file at the top-level directory of this distribution and at +// http://kwant-project.org/authors. + #include <algorithm> #include <exception> diff --git a/kwant/graph/c_slicer/slicer.h b/kwant/graph/c_slicer/slicer.h index 7707afc529285ba9a5c7e0bf02a8803fee3685e1..24930e299ffe22718ffb76e27e79c17e4ac16693 100644 --- a/kwant/graph/c_slicer/slicer.h +++ b/kwant/graph/c_slicer/slicer.h @@ -1,3 +1,11 @@ +// Copyright 2011-2013 kwant authors. +// +// This file is part of kwant. It is subject to the license terms in the +// LICENSE file found in the top-level directory of this distribution and at +// http://kwant-project.org/license. A list of kwant authors can be found in +// the AUTHORS file at the top-level directory of this distribution and at +// http://kwant-project.org/authors. + struct Slicing { int nslices; diff --git a/kwant/graph/core.pxd b/kwant/graph/core.pxd index 72905bfaefd2e5427d45a1f6431db057a3c224a4..5a866a632f47aff8f116b47fa0092cb728c1b8cf 100644 --- a/kwant/graph/core.pxd +++ b/kwant/graph/core.pxd @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + cimport numpy as np from kwant.graph.defs cimport gint diff --git a/kwant/graph/core.pyx b/kwant/graph/core.pyx index a8848c77ea6ea97feb6e4553bda519b648f8e361..a9a22f43a1c140612fa3f061370e52c3d15c4acb 100644 --- a/kwant/graph/core.pyx +++ b/kwant/graph/core.pyx @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Directed graphs optimized for storage and runtime efficiency.""" __all__ = ['Graph', 'CGraph'] diff --git a/kwant/graph/defs.h b/kwant/graph/defs.h index cbb768047a2da9c47e1ad40c38e27629d73db721..fc589daaeea61d2c686dbcc186b037547c5e07f5 100644 --- a/kwant/graph/defs.h +++ b/kwant/graph/defs.h @@ -1,3 +1,11 @@ +// Copyright 2011-2013 kwant authors. +// +// This file is part of kwant. It is subject to the license terms in the +// LICENSE file found in the top-level directory of this distribution and at +// http://kwant-project.org/license. A list of kwant authors can be found in +// the AUTHORS file at the top-level directory of this distribution and at +// http://kwant-project.org/authors. + #ifndef DEFS_H #define DEFS_H diff --git a/kwant/graph/defs.pxd b/kwant/graph/defs.pxd index 5d574061ac7c2ea6742937629563fbe8a1be9559..d4dcf7303a5d8bac609bd32da4576892c41a7943 100644 --- a/kwant/graph/defs.pxd +++ b/kwant/graph/defs.pxd @@ -1,2 +1,10 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + cdef extern from "defs.h": ctypedef signed int gint diff --git a/kwant/graph/defs.py b/kwant/graph/defs.py index 472c1f0cccf75402fb116eaeae026b597fec8d19..96b29a1038a3b6adbe7e7e0c5021dbb8f042080a 100644 --- a/kwant/graph/defs.py +++ b/kwant/graph/defs.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['gint_dtype'] import numpy as np gint_dtype = np.int32 diff --git a/kwant/graph/dissection.py b/kwant/graph/dissection.py index 0dd050e9d8b5ef90cd4a541f4779a92b80081034..f1be00882fe4deca83be4e4695a774e5ab281804 100644 --- a/kwant/graph/dissection.py +++ b/kwant/graph/dissection.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Routines to compute nested dissections of graphs""" __all__ = ['edge_dissection'] diff --git a/kwant/graph/scotch.pyx b/kwant/graph/scotch.pyx index 1e826ec20304c972e525fa162308200d9f0deca3..2e9fcd266a26468e9d6d624ab4ddb4b549b6ac0e 100644 --- a/kwant/graph/scotch.pyx +++ b/kwant/graph/scotch.pyx @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Wrapper for the graph library SCOTCH""" __all__ = ['bisect', 'reset'] diff --git a/kwant/graph/slicer.pyx b/kwant/graph/slicer.pyx index d9a896e682e8f625588617fbbb7a6b463f639cd5..b4cc96f0280cc0602effb13c68aef9e503472a30 100644 --- a/kwant/graph/slicer.pyx +++ b/kwant/graph/slicer.pyx @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np cimport numpy as np cimport cython diff --git a/kwant/graph/tests/test_core.py b/kwant/graph/tests/test_core.py index 1ec0879e81d36f673668ea4689fae3781eab4628..af1701db1c127dbcfa0a32a3722d386ac8a645f4 100644 --- a/kwant/graph/tests/test_core.py +++ b/kwant/graph/tests/test_core.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from StringIO import StringIO from itertools import izip_longest import numpy as np diff --git a/kwant/graph/tests/test_dissection.py b/kwant/graph/tests/test_dissection.py index 1d9392ee1b390e52847dc20eebb58ac56d97b595..df92f74e8675c137b0dd256c434e0b666dc27e79 100644 --- a/kwant/graph/tests/test_dissection.py +++ b/kwant/graph/tests/test_dissection.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from nose.tools import assert_equal, assert_true import numpy as np # from kwant.graph import Graph, dissection diff --git a/kwant/graph/tests/test_scotch.py b/kwant/graph/tests/test_scotch.py index a1713990fc35934ca6ea255c1863bb101fb219f7..eeebc40d9793caf7822c329315dd633035a21208 100644 --- a/kwant/graph/tests/test_scotch.py +++ b/kwant/graph/tests/test_scotch.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np from nose.tools import assert_equal, assert_true from kwant.graph import Graph diff --git a/kwant/graph/tests/test_slicer.py b/kwant/graph/tests/test_slicer.py index 3b0850deb3e5cd3cc5d37ad20644696ec3bd590f..3981863cdcbd95eb598a040cfaa975769794ba04 100644 --- a/kwant/graph/tests/test_slicer.py +++ b/kwant/graph/tests/test_slicer.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import kwant from kwant.graph import slicer diff --git a/kwant/graph/tests/test_utils.py b/kwant/graph/tests/test_utils.py index 0a1a2a95846882b46a1431d4af490ead8b5c12ee..c3bd5a53c02dfed3965d60a81b296b43956f0b30 100644 --- a/kwant/graph/tests/test_utils.py +++ b/kwant/graph/tests/test_utils.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np from nose.tools import assert_equal, assert_true from kwant.graph import Graph diff --git a/kwant/graph/utils.pyx b/kwant/graph/utils.pyx index d79f39a35e07b93dbca72e781ce8c6acce28090e..1854227ebfd36adbdd067e02cb61b70d27b5b7f7 100644 --- a/kwant/graph/utils.pyx +++ b/kwant/graph/utils.pyx @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Utilities to modify compressed graphs""" __all__ = ['make_undirected', 'remove_duplicates', 'induced_subgraph', diff --git a/kwant/lattice.py b/kwant/lattice.py index 4834f664a4226c09fe8ad85387eee907418910e5..c5f99528b9b664f486976bfa58bc1e1692c3343b 100644 --- a/kwant/lattice.py +++ b/kwant/lattice.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from __future__ import division __all__ = ['make_lattice', 'TranslationalSymmetry', diff --git a/kwant/linalg/__init__.py b/kwant/linalg/__init__.py index a545165d4cc23ee527add339e51ed93823f2687c..08a7c8e902f4fd0a0608002809cf83b24b781a16 100644 --- a/kwant/linalg/__init__.py +++ b/kwant/linalg/__init__.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['lapack'] from . import lapack diff --git a/kwant/linalg/_mumps.pyx b/kwant/linalg/_mumps.pyx index 9826056b5a9ba24b7a669afc9868e132fe228a11..9c6561da64576aea2cc3f9c56f46274affd88b71 100644 --- a/kwant/linalg/_mumps.pyx +++ b/kwant/linalg/_mumps.pyx @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + cimport numpy as np import numpy as np cimport cmumps diff --git a/kwant/linalg/cmumps.pxd b/kwant/linalg/cmumps.pxd index f4030c4e520856febed9b48b16c436fc82004e6f..3765b1cc00329cbd46841aa21e5ec42addab2748 100644 --- a/kwant/linalg/cmumps.pxd +++ b/kwant/linalg/cmumps.pxd @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + cdef extern from "mumps_c_types.h": ctypedef int MUMPS_INT diff --git a/kwant/linalg/cmumps.py b/kwant/linalg/cmumps.py index 47544834f872bd2cf966e1b616df9fda9a9d8249..5c5da547903613826e700b514b4f858283e4f8b8 100644 --- a/kwant/linalg/cmumps.py +++ b/kwant/linalg/cmumps.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np int_dtype = np.int32 diff --git a/kwant/linalg/decomp_ev.py b/kwant/linalg/decomp_ev.py index 36ceb70612ccfc49a3fa8602b1c56d12e8e27301..f5c2602da4d2cfa426b89ca5e532389902330f35 100644 --- a/kwant/linalg/decomp_ev.py +++ b/kwant/linalg/decomp_ev.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['gen_eig'] from . import lapack diff --git a/kwant/linalg/decomp_lu.py b/kwant/linalg/decomp_lu.py index cf9dc5915019ce22979f8d52bd1b1e6e550f3d9a..78d9e6aada8dd044d90da1ead1871c14001c9cdc 100644 --- a/kwant/linalg/decomp_lu.py +++ b/kwant/linalg/decomp_lu.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['lu_factor', 'lu_solve', 'rcond_from_lu'] import numpy as np diff --git a/kwant/linalg/decomp_schur.py b/kwant/linalg/decomp_schur.py index 01e1d3921fb6a9c7d32f751ea5afa7cace646544..e642d3d58b80dd34b8ad484c565dd662cb6eb679 100644 --- a/kwant/linalg/decomp_schur.py +++ b/kwant/linalg/decomp_schur.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['schur', 'convert_r2c_schur', 'order_schur', 'evecs_from_schur', 'gen_schur', 'order_gen_schur', 'convert_r2c_gen_schur', 'evecs_from_gen_schur'] diff --git a/kwant/linalg/f_lapack.pxd b/kwant/linalg/f_lapack.pxd index 5940f9974a12960100de7be00f1b78d8937974a3..7252c344d129a50dd787624882b59147c3c6828b 100644 --- a/kwant/linalg/f_lapack.pxd +++ b/kwant/linalg/f_lapack.pxd @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + ctypedef int l_int ctypedef int l_logical diff --git a/kwant/linalg/f_lapack.py b/kwant/linalg/f_lapack.py index cec1c6b28f0849e4df0315c6d196d5a7be4151f7..721a46437da0d7ec7cb3e70c92320f49cbc02f46 100644 --- a/kwant/linalg/f_lapack.py +++ b/kwant/linalg/f_lapack.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['l_int_dtype', 'l_logical_dtype'] import numpy as np diff --git a/kwant/linalg/fortran_helpers.py b/kwant/linalg/fortran_helpers.py index e05e4f8cb74d902cbcc78ec5c0344e32e2c439d1..2161b42b8c5931e737b2a565a907119ef943abd8 100644 --- a/kwant/linalg/fortran_helpers.py +++ b/kwant/linalg/fortran_helpers.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np diff --git a/kwant/linalg/lapack.pyx b/kwant/linalg/lapack.pyx index 738107ce65aceab3185229332733c4a0fbe4c8cc..44ea46fc779522d53ef1168cd6e6be8c69376d06 100644 --- a/kwant/linalg/lapack.pyx +++ b/kwant/linalg/lapack.pyx @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Low-level access to LAPACK functions. """ __all__ = ['sgetrf', 'dgetrf', 'cgetrf', 'zgetrf', diff --git a/kwant/linalg/mumps.py b/kwant/linalg/mumps.py index 146a66a06012e9a322252c604dd11d77ecae14fd..284157b7cd93342265006cb8552b10728911324c 100644 --- a/kwant/linalg/mumps.py +++ b/kwant/linalg/mumps.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Interface to the MUMPS sparse solver library""" __all__ = ['MUMPSContext', 'schur_complement', 'AnalysisStatistics', diff --git a/kwant/linalg/tests/_test_utils.py b/kwant/linalg/tests/_test_utils.py index 9c14d10338d4a5e07adbae6c3a8775fb083ad2b7..b7bd9d29cb30dbc691fd75ae4d1a126a3b69506c 100644 --- a/kwant/linalg/tests/_test_utils.py +++ b/kwant/linalg/tests/_test_utils.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np class _Random: diff --git a/kwant/linalg/tests/test_linalg.py b/kwant/linalg/tests/test_linalg.py index bc43d8af3053c4b9ed76dde530c359b407d203a9..51a70f56745d9bb574e913e5882c107b5f814a94 100644 --- a/kwant/linalg/tests/test_linalg.py +++ b/kwant/linalg/tests/test_linalg.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from kwant.linalg import lu_factor, lu_solve, rcond_from_lu, gen_eig, schur, \ convert_r2c_schur, order_schur, evecs_from_schur, gen_schur, \ convert_r2c_gen_schur, order_gen_schur, evecs_from_gen_schur diff --git a/kwant/linalg/tests/test_mumps.py b/kwant/linalg/tests/test_mumps.py index e0e062a107531c015aa9181a262545d44bae84b0..dd200b1e2381a6196e0681452e9be9fb0373783a 100644 --- a/kwant/linalg/tests/test_mumps.py +++ b/kwant/linalg/tests/test_mumps.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + try: from kwant.linalg.mumps import MUMPSContext, schur_complement _no_mumps = False diff --git a/kwant/physics/__init__.py b/kwant/physics/__init__.py index 431526500c4ba6503f339ef68d43f1c31a824c19..2b081aa8ddde4a367c3f7a1344c0865a360e77fe 100644 --- a/kwant/physics/__init__.py +++ b/kwant/physics/__init__.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Physics-related algorithms""" # Merge the public interface of all submodules. diff --git a/kwant/physics/dispersion.py b/kwant/physics/dispersion.py index 57def6b6e466a3210202d8859dc136c20427e2e5..12245ac09ba74e04b582f7b744fc790f2bb7a845 100644 --- a/kwant/physics/dispersion.py +++ b/kwant/physics/dispersion.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import math import numpy as np diff --git a/kwant/physics/noise.py b/kwant/physics/noise.py index 9809b4e61f43e33423f17f33f12baabb9fe7430b..5758fce8d43a3e9ccd0f5b3d1857f0f1a657d3a6 100644 --- a/kwant/physics/noise.py +++ b/kwant/physics/noise.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np def two_terminal_shotnoise(smatrix): diff --git a/kwant/physics/selfenergy.py b/kwant/physics/selfenergy.py index 3a3ec5f00ca8f3a616409c1e2119ad3251c26272..ba971101a9487d238eb09b8cac2227145b9a78e2 100644 --- a/kwant/physics/selfenergy.py +++ b/kwant/physics/selfenergy.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from __future__ import division from math import sin, cos, sqrt, pi, copysign from collections import namedtuple diff --git a/kwant/physics/tests/test_dispersion.py b/kwant/physics/tests/test_dispersion.py index 128b0bf175bdd6239d98c2d35537ffcf1aed17c5..1371018810bed2562bda671e941d7129f0a00956 100644 --- a/kwant/physics/tests/test_dispersion.py +++ b/kwant/physics/tests/test_dispersion.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from numpy.testing import assert_array_almost_equal import kwant from math import pi, cos diff --git a/kwant/physics/tests/test_noise.py b/kwant/physics/tests/test_noise.py index d5109201094314ad633ae5066d250b73ffb00ead..85720882f68f3ceaf5569ca4e9c908f460aaec5a 100644 --- a/kwant/physics/tests/test_noise.py +++ b/kwant/physics/tests/test_noise.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np from nose.tools import assert_raises from numpy.testing import assert_almost_equal diff --git a/kwant/physics/tests/test_selfenergy.py b/kwant/physics/tests/test_selfenergy.py index 2b54ec1df3ca51670b2e2218b52ab5cd3687d987..2975c1415f3abd1c571a48e43a98e74c0d0b7677 100644 --- a/kwant/physics/tests/test_selfenergy.py +++ b/kwant/physics/tests/test_selfenergy.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from __future__ import division import numpy as np from numpy.testing import assert_almost_equal diff --git a/kwant/plotter.py b/kwant/plotter.py index ec2e589489d90cb9765785c73550105765be9cba..f134161795e080d69a45e772a1ff129ae1570b7e 100644 --- a/kwant/plotter.py +++ b/kwant/plotter.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Plotter module for kwant. This module provides iterators useful for any plotter routine, such as a list diff --git a/kwant/solvers/__init__.py b/kwant/solvers/__init__.py index efddc556f1dcd240b5c7a05a671e1ab0e9077e8d..41fbb9bab6060a934ce3c5a80694c551a3d8cc6b 100644 --- a/kwant/solvers/__init__.py +++ b/kwant/solvers/__init__.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """This package contains solvers in individual sub-packages. One of the solvers will be imported as `default`. Please import other diff --git a/kwant/solvers/common.py b/kwant/solvers/common.py index a09e8e4a3a95023695efe43018425846a7fd63e4..1a4521cbd9c4f8e16bb05edddb62bf17a86a1b64 100644 --- a/kwant/solvers/common.py +++ b/kwant/solvers/common.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['SparseSolver', 'BlockResult'] from collections import namedtuple diff --git a/kwant/solvers/default.py b/kwant/solvers/default.py index 3386a062b12f571c16587f322d9a33d3f67cb9af..eab418224001361b359848730d7a36eeff535584 100644 --- a/kwant/solvers/default.py +++ b/kwant/solvers/default.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['solve', 'ldos', 'wave_func'] # MUMPS usually works best. Use SciPy as fallback. diff --git a/kwant/solvers/mumps.py b/kwant/solvers/mumps.py index 9f18dba310fb4567d7dc2b93de71100810753a29..0e57c891168309f173581962ba3ce7f1183da876 100644 --- a/kwant/solvers/mumps.py +++ b/kwant/solvers/mumps.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['solve', 'ldos', 'wave_func', 'options', 'Solver'] import numpy as np diff --git a/kwant/solvers/sparse.py b/kwant/solvers/sparse.py index 27ceb565cc523fe92a54004d0870cd6c136cad97..66aab5a47231f0d0e721e6374d1855d351d70c7d 100644 --- a/kwant/solvers/sparse.py +++ b/kwant/solvers/sparse.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + __all__ = ['solve', 'ldos', 'wave_func', 'Solver'] import warnings diff --git a/kwant/solvers/tests/_test_sparse.py b/kwant/solvers/tests/_test_sparse.py index 0f58294a577559e7e5d468d10232aee06791a35a..b16bce95c3e88ca78768a1a6f7c1c9009997ecc0 100644 --- a/kwant/solvers/tests/_test_sparse.py +++ b/kwant/solvers/tests/_test_sparse.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from __future__ import division import numpy as np from nose.tools import assert_raises diff --git a/kwant/solvers/tests/test_mumps.py b/kwant/solvers/tests/test_mumps.py index 81529592c7a4f0b34a28fa6083512bb0ac5e3111..416c8f98b3df1ece388b3c69ff6fb4cb5463ea5c 100644 --- a/kwant/solvers/tests/test_mumps.py +++ b/kwant/solvers/tests/test_mumps.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from nose.plugins.skip import Skip, SkipTest from numpy.testing.decorators import skipif try: diff --git a/kwant/solvers/tests/test_sparse.py b/kwant/solvers/tests/test_sparse.py index 9a5c90830cd922b8d6d2d43871b495229b6ab9c6..1e27f0b43e0bcb4b2608150e9a867b7414e502e2 100644 --- a/kwant/solvers/tests/test_sparse.py +++ b/kwant/solvers/tests/test_sparse.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from nose.plugins.skip import Skip, SkipTest from kwant.solvers.sparse import solve, ldos, wave_func import kwant.solvers.sparse diff --git a/kwant/system.py b/kwant/system.py index 00ff881fea910b8bdc134e38890001e2c8d5a995..aa56515e2fa4c96fc65ec8f7b823ef27add75032 100644 --- a/kwant/system.py +++ b/kwant/system.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + """Low-level interface of systems""" from __future__ import division diff --git a/kwant/tests/test_builder.py b/kwant/tests/test_builder.py index 8138f6a26216579192fc4a0a566d7aa6e6478095..27b4454e9ec2cbf4bb3d0b1d375040790a0fafd3 100644 --- a/kwant/tests/test_builder.py +++ b/kwant/tests/test_builder.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from __future__ import division from random import Random from StringIO import StringIO diff --git a/kwant/tests/test_lattice.py b/kwant/tests/test_lattice.py index 9c8a5495fbdb2996bc379e36e8fff92db6c5d15a..ac687907eada251c525329dc595fb7217c9edfc4 100644 --- a/kwant/tests/test_lattice.py +++ b/kwant/tests/test_lattice.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + from __future__ import division from math import sqrt import numpy as np diff --git a/kwant/tests/test_plotter.py b/kwant/tests/test_plotter.py index 2e7f5ebb8920dd6c6260f85490f08f2dd51e0d9e..d93f01a889814fb97299dd7c0c409a8b7f456547 100644 --- a/kwant/tests/test_plotter.py +++ b/kwant/tests/test_plotter.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import tempfile import nose import kwant diff --git a/kwant/tests/test_system.py b/kwant/tests/test_system.py index caf3fd649184e98cb5a8c6e214f7fc50d81e0036..b54457719dfba16724a836c343a9b827b38cbd4b 100644 --- a/kwant/tests/test_system.py +++ b/kwant/tests/test_system.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import numpy as np from scipy import sparse from nose.tools import assert_raises diff --git a/kwant/version.py b/kwant/version.py index 7b5efeeddefa3787feb3ec8016aab7fcf1b1949b..e07785eca9c0a2882c677578bbb6aeda44ed7ccd 100644 --- a/kwant/version.py +++ b/kwant/version.py @@ -1,3 +1,11 @@ +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + import subprocess import os diff --git a/setup.py b/setup.py index 2112d2c7ac5306a1e049874013a31788f572a7a9..08ca2ba345029540ae9893a18bc0d3a47fc31cdd 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,13 @@ #!/usr/bin/env python +# Copyright 2011-2013 kwant authors. +# +# This file is part of kwant. It is subject to the license terms in the +# LICENSE file found in the top-level directory of this distribution and at +# http://kwant-project.org/license. A list of kwant authors can be found in +# the AUTHORS file at the top-level directory of this distribution and at +# http://kwant-project.org/authors. + CONFIG_FILE = 'build.conf' STATIC_VERSION_FILE = 'kwant/_static_version.py' REQUIRED_CYTHON_VERSION = (0, 17, 1) @@ -318,11 +326,12 @@ def main(): setup(name='kwant', version=version(), - author='A. R. Akhmerov, C. W. Groth, X. Waintal, M. Wimmer', + author='kwant authors', author_email='christoph.groth@cea.fr', description="A package for numerical " "quantum transport calculations.", - license="not to be distributed", + url="http://kwant-project.org/", + license="BSD", packages=["kwant", "kwant.graph", "kwant.linalg", "kwant.physics", "kwant.solvers", "kwant.tests", "kwant.graph.tests", "kwant.linalg.tests", "kwant.physics.tests",