Skip to content

3. Installation

DemAnasta edited this page Jul 3, 2019 · 3 revisions

Prerequisites

To install the Project, you will need:

  • python; the installation has been tested under Versions 2.7 and 3.6 and both work fine.
  • NumPy; NumPy is the fundamental package for scientific computing with Python.
  • SciPy; SciPy is a Python-based ecosystem of open-source software for mathematics, science, and engineering. Actualy, we are only using the SciPy.linalg and SciPy.spatial modules.

Both NumPy and SciPy have extended installation guides for most, if not all, operating systems.

To use the Plot Tools bundle, you must have GMT (> 5.0.0) installed, allong with a variety of UNIX-based tools. If you are on a UNIX/Linux operating system, most or all of them are pre-installed.

Installation Procedure

To install the Project, you actualy only need to install the pystrain package. What this means, is that python will see that the package modules are build and extracted to a suitable folder on your local system (something like /usr/lib/python2.7/site-packages/ on a UNIX-like system). After this step, you will be able to make use of the modules in the package, both for running StrainTool.py and for any new program you may wish to code. StrainTensor.py and Plot Tools are programs, so you do not to "install" them.

To install pystrain, do the following:

  1. go to the directory the package is located, i.e. StrainTool/pystrain

  2. the package comes with a setup.py script, so you only need to run it (as root/administrator):

    $> python setup.py install
    

That's it! The package modules should now be in place and you should be able to use the main script, StrainTensor.py

Installation tests

The following scenarios have been tested to validate the installation procedure

OS Python 2.7 Python 3.6 GMT 5.2 GMT 5.4
Fedora
Manjaro
Ubuntu
Windows 10
Clone this wiki locally