Windows

The installation for the Windows operating system consists of the following steps:

  • Installation of a suitable Python distribution

  • (optional) Installation of the MiKTeX Latex distribution (under Windows, Latex support is disabled by default, and has to be activated using the corresponding environment variable).

  • Installation of the ccd_tools (via pip install)

  • Installation of Git for installation of ccd_tools from local source.

There are multiple suitable Python distributions to choose from. At the moment the Anaconda distribution is recommended: https://www.anaconda.com/download/ (use Python 3.6, 64 bit)

Anaconda installation

Anaconda is a Python distribution, simplifying package management and using the conda package management system. Download Anaconda (Python 3.6 version) here: https://www.anaconda.com/download/ and follwow the installation instructions. In addition, a installation guide can be found here: https://docs.anaconda.com/anaconda/install/windows.html

To make shure that the newest Anaconda version will be used, update Anaconda after the installation. Open the Anaconda prompt and use:

conda update conda

After the insterallation and the update of Anaconda, install and enable the Jupyter ipywidges via conda, using the following command:

conda install -c conda-forge ipywidgets

Git installation

From our Git repositories you can download the required Python packages, to use them as local source. To use Git as a version control system and to clone the Git repository, you need to download and install Git to your computer as well as a Git account.

Download Git for Windows from: https://git-for-windows.github.io You can choose from Git BASH and Git GUI.

There are also some more alternative Git GUIS avalible: https://git-scm.com/download/gui/windows

Before cloning a Git repository to your local device the first time, you have to add your SSH authentication key to your Git account. Adding SSH-Key: https://gitlab.geo.uni-bonn.de:443/help/ssh/README

For using the Git BASH, get yourself familiar with the following git commands:

  • git clone

  • git pull / git push

  • git add

  • git commit

  • git branch

  • git checkout

  • git merge

(Optional) MiKTeX

MiKTeX is an implementation of the TeX typsetting system and used here as part of the plotting routines for lables. To install the basic MiKTeX system on Windows, download and run the following installer: https://miktex.org/download

A detailed installation tutorial can be found here: https://miktex.org/howto/install-miktex

Installing ccd_tools

via pip install

Stable versions of ccd-tools are released to pipy. Open the Anaconda prompt (a terminal window should appear) and install ccd_tools, using the following command:

pip install ccd_tools

The following Python packages are required and already part of the Anaconda distribution:

  • numpy

  • scipy

  • matplotlib

In addition, the folliwing Python packages are also required and part of the ccd-tools installation via ‘pip install’:

  • geccoinv

  • sip_models

via local source (Git clone)

  1. Create a working directory, e.g. …/users/USERNAME/ccd-tools.

  2. Right click the folder and choose Git Bash Here, a terminal window should appear.

  3. Clone the required Git repositories, using the following commands:

    git clone https://github.com/m-weigand/sip_models.git
    git clone https://github.com/m-weigand/geccoinv.git
    git clone https://github.com/m-weigand/ccd_tools.git
    
  4. Open the Anaconda prompt (a terminal window should appear).

  5. To install geccoinv, navigate within the Anaconda promt to the corresponding directory …/ccd-tools/geccoinv and use the following commands:

    pip install -U pip
    pip install -r requirements.txt
    python setup.py install
    

(to navigate within the Anaconda promt, use the ‘cd’ command.)

  1. To install sip-models, navigate within the Anaconda promt to the corresponding directory …/ccd-tools/sip_models and use the following commands:

    pip install -r requirements.txt
    python setup.py install
    
  2. To install ccd-tools, navigate within the Anaconda promt to the corresponding directory …/ccd-tools/ccd_tools and use the following commands:

    pip install -r requirements.txt
    python setup.py install
    

via local source (Zip download)

  1. Create a working directory, e.g. …/users/USERNAME/ccd-tools.

  2. Download the required Git repositories to your working directory:

  3. Unzip the ZIP-files and create the following subdirectories:

    • …/ccd-tools/sip_models

    • …/ccd-tools/geccoinv

    • …/ccd-tools/ccd_tools

  4. Open the Anaconda prompt (a terminal window should appear).

  5. To install geccoinv, navigate within the Anaconda promt to the corresponding directory …/ccd-tools/geccoinv and use the following commands:

    pip install -U pip
    pip install -r requirements.txt
    python setup.py install
    
  6. To install sip-models, navigate within the Anaconda promt to the corresponding directory …/ccd-tools/sip_models and use the following commands:

    pip install -r requirements.txt
    python setup.py install
    
  7. To install ccd-tools, navigate within the Anaconda promt to the corresponding directory …/ccd-tools/ccd_tools and use the following commands:

    pip install -r requirements.txt
    python setup.py install
    

OLD

The installation for the Windows operating system consists of the following steps:

  • Installation of a suitable Python distribution

  • (optional) Installation of the MiKTex Latex distribution (under Windows, Latex support is disabled by default, and has to be activated using the corresponding environment variable).

  • Installation of the Debye decomposition tools

There are multiple suitable Python distributions to choose from. At the moment the Anaconda distribution is recommended: http://continuum.io/downloads (use Python 2.7, 64 bit)

In the following, please install only one of the Python distributions, and then proceed with the installation of the DD-Tools, and optionally the MikTex distribution.

Installing the Anaconda Python distribution

  • Download the Python 2.7, 64 bit version of the Anaconda distribution: http://continuum.io/downloads

  • Start by opening the file manager in the download directoy:

    _images/file_explorer.png
  • The following screenshots show the steps of the setup wizard. Usually all presets can be accepted by clicking on the ‘next’ button.

    _images/setup1.png _images/setup2.png _images/setup3.png _images/setup4.png

Warning

Note that Anaconda (as tested in Juli, 2015) does not register the .py extension with the Python interpreter. That means that, at this point, you cannot click on a Python file and execute it as any executable. The following screenshots show you how to register Python with the .py extension.

  • Find the file fix_registry_windows.py that resides in the root directory of the zip-archive (or the extracted directory). Note that sometimes the file extension .py is not shown. Right click on the file, and select “Open with”.

    _images/setup5.png
  • The following dialog in Windows 7 looks like:

    _images/open_with_01_win7.png
  • The Windows 8.1 version looks like this:

    _images/open_with_01.png
  • Click on ‘More options’ to expand the window:

    _images/setup6.png
  • Check the box “Use this app for all .py files”. Scroll down and click on “Look for another app on this PC” at the bottom:

    _images/setup7.png
  • A file-open dialog appears. Select the python.exe binary in the Anaconda installation directory (in this example C:\UsersMaximilian\Anaconda), and click “open”.

    _images/setup8.png
  • The icon next to all Python (.py) files should now show the Python logo:

    _images/setup11.png

Note

During the process of associating the file type .py with the Python.exe executable the Python script fix_registry_windows.py was executed. This script tries to fix some common problems with the file type association. If you associated the extension via another way, please execute this script once.

Installing the DD tools

  • The DD tools are provided in .zip file which contains the source code, the documentation, examples, and a Windows installation file. Extract the archive file to a new directory:

    _images/setup01.png
  • We provide a MSI-Installation file called dd_tools_0.5.4.win.amd64.msi (the version number can vary). Execute this installer by double clicking on it, and follow the installation instructions (usually all preset settings can be accepted by clicking ‘next’).

    _images/setup02.png
  • After the installation, open the following subdirectory in the extracted directory: dd_interfaces/examples/dd_single/01. Execute the file run_dd by double clicking on it:

    _images/setup03.png
  • A terminal window should appear with the output of the call.

    _images/setup04.png

    The window should close itself after the decomposition finished. The installation was successful if a directory results/ was created with the fit results.

(optional) Installing MiKTex

Note

We had some problems and long waiting times during the installation of MiKTex. Therefore we disabled the Latex support in the DD tools for the Windows installation, and made MiKTex an optional requirement.

Note

The first plotting call will take a LONG time, as MiKTex will (automatically) install (and download) all required latex packages. Subsequent calls should be much faster!

_images/setup011.png _images/setup021.png _images/setup031.png _images/setup041.png _images/setup05.png _images/setup06.png _images/setup07.png

Problems