Skip to content

Commit 7e78d23

Browse files
author
Dominik Gresch
committed
Change documentation links
1 parent 15b3de3 commit 7e78d23

13 files changed

+37
-28
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ Of course, improvements to documents outside the documentation, such such as thi
3131

3232
## Contributing to the code
3333

34-
If you would like to contribute to the code itself, please have a look at the [developer's guide](http://z2pack.ethz.ch/doc/2.1/devguide/index.html). Before you start working on something, it's usually a good idea to submit an issue describing what you're trying to do. That way, you can get feedback on how to solve the issue before starting to code.
34+
If you would like to contribute to the code itself, please have a look at the [developer's guide](https://z2pack.greschd.ch/en/latest/devguide/). Before you start working on something, it's usually a good idea to submit an issue describing what you're trying to do. That way, you can get feedback on how to solve the issue before starting to code.
3535

3636
New features should be added by branching off from the latest development branch (``dev/current``). Once you've started working on something, you can create a pull request if you would like to have some feedback on the code. You can put ``[WIP]`` (work in progress) in the PR title to let us know if you're still working on the code. To simplify the review and merging of pull requests, it is good practice to add only one feature in each PR. This is not a strict rule however -- use your best judgment to determine whether a set of changes are a logical unit.

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ prune dev_test
99
prune TODO
1010
prune clear.sh
1111

12-
# Documentation is provided on http://z2pack.ethz.ch/doc
12+
# Documentation is provided online
1313
prune doc
1414

1515
# selectively include ptools

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ The topological numbers are computed from the evolution of Wannier charge center
55

66
The WCC are calculated from overlap matrices which are calculated either directly (for tb and hm) or via the Wannier90 code package (fp).
77

8-
- Documentation: <http://z2pack.ethz.ch/doc>
8+
- Documentation: <https://z2pack.greschd.ch>
99

1010
[![Build Status](https://travis-ci.org/Z2PackDev/Z2Pack.svg?branch=dev%2Fcurrent)](https://travis-ci.org/Z2PackDev/Z2Pack)

doc/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Makefile for Sphinx documentation
22
#
33

4+
include config_fallback.mk
45
include config.mk
56

67
# User-friendly check for sphinx-build

doc/config.mk

Whitespace-only changes.
File renamed without changes.

doc/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
intersphinx_mapping = {
3838
'python': ('https://docs.python.org/3', None),
39-
'tbmodels': ('http://z2pack.ethz.ch/tbmodels/', None),
39+
'tbmodels': ('https://tbmodels.greschd.ch/en/latest', None),
4040
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
4141
'matplotlib': ('http://matplotlib.org', None),
4242
'fsc.locker':
@@ -197,7 +197,7 @@
197197
# If true, an OpenSearch description file will be output, and all pages will
198198
# contain a <link> tag referring to it. The value of this option must be the
199199
# base URL from which the finished HTML is served.
200-
html_use_opensearch = 'http://z2pack.ethz.ch/doc'
200+
html_use_opensearch = 'https://z2pack.greschd.ch'
201201

202202
# This is the file name suffix for HTML files (e.g. ".xhtml").
203203
#html_file_suffix = None

doc/source/links.rst

+14-6
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,22 @@ Links
77

88
The development of Z2Pack is hosted on GitHub. Here you can find the full code / input files for our examples. On the `issues <https://github.com/Z2PackDev/Z2Pack/issues>`_ page you can see what is currently being worked on, and ask questions or make suggestions for new features.
99

10-
--------
10+
Related codes
11+
-------------
1112

12-
.. rubric:: `Documentation versions <http://z2pack.ethz.ch/doc/version.html>`_
13+
The following projects are closely related to Z2Pack:
1314

14-
Here you can find the documentation for other versions of Z2Pack.
15+
- **TBmodels** - a package for creating, modifying and evaluating tight-binding models
16+
https://tbmodels.greschd.ch>
1517

16-
--------
18+
- **kdotp-symmetry** - a tool for calculating the k.p Hamiltonian with symmetry constraints
19+
https://kdotp-symmetry.greschd.ch
1720

18-
.. rubric:: `Online TB Calculator <http://z2pack.ethz.ch/online/>`_
21+
- **symmetry-representation** - a tool for computing the representation matrices of crystal symmetries
22+
https://symmetry-representation.greschd.ch
1923

20-
The online TB calculator can be used to perform Z2Pack calculations for simple tight-binding systems without installing Z2Pack.
24+
- **NodeFinder** - a tool for finding and identifying nodal features in potential landscapes
25+
https://nodefinder.greschd.ch
26+
27+
- **PhaseMap** - an algorithm or calculating phase diagrams
28+
https://phasemap.greschd.ch

doc/source/tutorial/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ where ``path_to_z2pack`` should be the path to the top folder of the downloaded
5656
Installing the tight-binding backend
5757
------------------------------------
5858

59-
For calculating tight-binding models, Z2Pack uses the `TBmodels <http://z2pack.ethz.ch/tbmodels>`_ package. It is installed in the same way as Z2Pack:
59+
For calculating tight-binding models, Z2Pack uses the `TBmodels <http://tbmodels.greschd.ch>`_ package. It is installed in the same way as Z2Pack:
6060

6161
.. code :: bash
6262

doc/source/tutorial/new.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,54 @@ What's new in Z2Pack 2.0
55

66
.. rubric :: First, the bad news
77
8-
Let's get the elephant out of the room: Z2Pack version 2 is **not** backwards compatible to the previous versions. Furthermore, it is compatible only with Python 3.4 or newer. Because I know that it can be frustrating having to re-write your code when some library changes, I hesitated a long while to do this. However, there are now many things that I could solve in a more elegant way and - more importantly - I believe it will be much easier to add features to this new version. If you have code that is already running in the previous version of Z2Pack, or you cannot switch to Python 3.4 yet, here's the deal: I will **keep supporting** the last version of Z2Pack 1.X as long as there is any need for it. I have also changed the website such that old versions of the documentation are now available `here <http://z2pack.ethz.ch/doc/version.html>`_.
8+
Let's get the elephant out of the room: Z2Pack version 2 is **not** backwards compatible to the previous versions. Furthermore, it is compatible only with Python 3.4 or newer. Because I know that it can be frustrating having to re-write your code when some library changes, I hesitated a long while to do this. However, there are now many things that I could solve in a more elegant way and - more importantly - I believe it will be much easier to add features to this new version. If you have code that is already running in the previous version of Z2Pack, or you cannot switch to Python 3.4 yet, here's the deal: I will **keep supporting** the last version of Z2Pack 1.X as long as there is any need for it.
99

1010
.. rubric :: And now for the good news
1111
1212
I strongly believe that the package has become more well-structured and easier to use. Many of the things that were an afterthought in the previous version, such as how to restart a calculation or calculating just a single line, are now built into the core of Z2Pack. As a result, some of the quirks of the previous version have been eliminated. In the following sections, I will highlight some of the more prominent improvements.
1313

1414
.. rubric :: Tight-binding models on steroids
1515
16-
The previous version of Z2Pack contained a submodule for creating tight-binding models. This module has now matured and became its own package: `TBmodels <http://z2pack.ethz.ch/tbmodels>`_. Obviously, TBmodels is still compatible with Z2Pack. Among other improvements, evaluating a tight-binding model is now much faster. The improvement is particularly noticeable for first-principles derived tight-binding models which are much larger than other effective models. To give you a rough idea, for one particular model evaluating the Hamiltonian is about **650** times faster.
16+
The previous version of Z2Pack contained a submodule for creating tight-binding models. This module has now matured and became its own package: `TBmodels <https://tbmodels.greschd.ch>`_. Obviously, TBmodels is still compatible with Z2Pack. Among other improvements, evaluating a tight-binding model is now much faster. The improvement is particularly noticeable for first-principles derived tight-binding models which are much larger than other effective models. To give you a rough idea, for one particular model evaluating the Hamiltonian is about **650** times faster.
1717

1818
.. rubric :: Saving results: going away from pickle
1919
20-
Saving results was previously done with the :py:mod:`pickle` module. As I've learned since writing the first version of Z2Pack, there are various reasons why this is not ideal. Most importantly, objects serialized with :py:mod:`pickle` might not be deserializable when one of the modules involved has changed. The full reasoning can be seen in a `PyCon 2014 talk by Alex Gaynor <https://www.youtube.com/watch?v=7KnfGDajDQw>`_ . By switching to ``msgpack`` as a default serializer, this problem is solved.
20+
Saving results was previously done with the :py:mod:`pickle` module. As I've learned since writing the first version of Z2Pack, there are various reasons why this is not ideal. Most importantly, objects serialized with :py:mod:`pickle` might not be deserializable when one of the modules involved has changed. The full reasoning can be seen in a `PyCon 2014 talk by Alex Gaynor <https://www.youtube.com/watch?v=7KnfGDajDQw>`_ . By switching to ``msgpack`` as a default serializer, this problem is solved.
2121

22-
Another improvement in the saving process is that the calculation continues while the saving is done in a separate thread. This is particularly useful for smaller systems, where the cost of saving might be comparable or even higher than that of creating the results.
22+
Another improvement in the saving process is that the calculation continues while the saving is done in a separate thread. This is particularly useful for smaller systems, where the cost of saving might be comparable or even higher than that of creating the results.
2323

24-
Finally, saving is now done in a way that ensures that the files cannot be corrupted, even if the program crashes whilst saving. This is done by first saving to a separate temporary file and then moving that file to replace the previous version.
24+
Finally, saving is now done in a way that ensures that the files cannot be corrupted, even if the program crashes whilst saving. This is done by first saving to a separate temporary file and then moving that file to replace the previous version.
2525

2626
.. rubric :: New way of calculating the Wannier charge centers
2727
28-
One of the changes at the core of Z2Pack is how Wannier charge centers are calculated. In both versions, they are calculated from a series of overlap matrices :math:`M_0, ..., M_{n-1}`.
28+
One of the changes at the core of Z2Pack is how Wannier charge centers are calculated. In both versions, they are calculated from a series of overlap matrices :math:`M_0, ..., M_{n-1}`.
2929

30-
In the previous version, a singular value decomposition
30+
In the previous version, a singular value decomposition
3131

3232
.. math ::
3333
3434
M = V \Sigma W^\dagger
35-
35+
3636
is first performed for each of the overlap matrices. Then the product
3737

3838
.. math ::
3939
4040
\Lambda = W_{n-1}V_{n-1}^\dagger \cdot ... \cdot W_0 V_0^\dagger,
41-
41+
4242
is calculated, whose eigenvalues :math:`\lambda_i` are connected to the WCC by
4343

4444
.. math ::
4545
4646
\bar{x}_i = - \frac{\arg(\lambda_i)}{2 \pi}.
4747
4848
49-
In the current version, the overlap matrices are multiplied together to create the Wilson loop
49+
In the current version, the overlap matrices are multiplied together to create the Wilson loop
5050

5151
.. math ::
5252
5353
\mathcal{W} = M_0 \cdot ... \cdot M_{n-1}
54-
55-
54+
55+
5656
whose eigenvalues :math:`w_i` are connected ot the WCC by
5757

5858
.. math ::

doc/source/tutorial/system.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ includes only the upper band (because the index starts at 0).
5353
5454
Tight-binding models - :mod:`z2pack.tb`
5555
---------------------------------------
56-
For tight-binding models, the `TBmodels <http://z2pack.ethz.ch/tbmodels>`_ package (which started its life as a part of Z2Pack) is used. TBmodels uses its :py:class:`tbmodels.Model` class to describe a tight-binding model. There are several ways to create those, described in the `TBmodels tutorial <http://z2pack.ethz.ch/tbmodels/tutorial.html>`_ . Instances of :py:class:`tbmodels.Model` can be used to construct Z2Pack systems, using the :class:`z2pack.tb.System` class.
56+
For tight-binding models, the `TBmodels <https://tbmodels.greschd.ch>`_ package (which started its life as a part of Z2Pack) is used. TBmodels uses its :py:class:`tbmodels.Model` class to describe a tight-binding model. There are several ways to create those, described in the `TBmodels tutorial <https://tbmodels.greschd.ch/en/latest/tutorial.html>`_ . Instances of :py:class:`tbmodels.Model` can be used to construct Z2Pack systems, using the :class:`z2pack.tb.System` class.
5757

5858
The following code shows how to create a Z2Pack system from a tight-binding model given in Wannier90's ``*_hr.dat`` format.
5959

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
The Wannier charge centers are computed from overlap matrices that are obtained either directly (for tb) or via the Wannier90 code package (fp).
1515
16-
`Documentation: <http://z2pack.ethz.ch/doc>`_
16+
`Documentation: <https://z2pack.greschd.ch>`_
1717
"""
1818

1919
with open('./z2pack/__init__.py', 'r') as f:
@@ -34,7 +34,7 @@
3434
setup(
3535
name='z2pack',
3636
version=VERSION,
37-
url='http://z2pack.ethz.ch',
37+
url='https://z2pack.greschd.ch',
3838
author='Dominik Gresch',
3939
author_email='[email protected]',
4040
description=

z2pack/tb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
"""
4-
This module contains the class for creating systems based on `TBmodels <http://z2pack.ethz.ch/tbmodels>`_ tight-binding models.
4+
This module contains the class for creating systems based on `TBmodels <https://tbmodels.greschd.ch>`_ tight-binding models.
55
"""
66

77
import copy

0 commit comments

Comments
 (0)