Skip to main content

geotecha: A software suite for geotechncial engineering

Project description

https://raw.githubusercontent.com/rtrwalker/geotecha/master/docs/_static/logo.png

Writen by Dr Rohan Walker

geotecha is a a GPLv3-licensed Python package for geotechnical engineering.

Many components of geotecha derive from geotechnical research conducted by Dr. Rohan Walker, Prof. Buddhima Indraratna, and others at the University of Wollongong, NSW, Australia.

Primarily a repository of programs, tools, and code used by Dr Rohan Walker, the content reflects his primary interest in soft soil consolidation with and without vertical drains. In particular the speccon programs solve one-dimensional partial differential equations associated with multi-layer problems using the spectral Galerkin method. Material properties are constant with time but piecewsie-linear with depth. Loads and boundary conditions are piecewise linear with time (plus a sinusoidal component). A number of other analytical solutions to soil consolidation problems are available in the consolidation sub-package.

Documentation

geotecha documentation is currently stored at http://pythonhosted.org//geotecha/ .

Installation

geotecha was developed on a Windows platform. While I have tried to use cross platform programming idioms, I have (at the time of writing) made no attempt to build/use geotecha on any platform other than windows. That does not mean that it will not work. I simply do not know if it does or does not.

Requirements

geotecha uses a number of other python packages such as numpy, matplotlib, and scipy. Setting up your python environment to successfully run all these packages can be cumbersome so pre-built python stacks such as the readily available Anaconda or Python(x,y) are highly recommended . Note generally better to uninstall any existing python distributions before installing a new one.

Package requirements:

  • numpy

  • matplotlib

  • scipy

  • pandas

  • sympy

  • brewer2mpl

  • testfixtures

  • numpydoc

  • IPython

  • pkg_resources

  • mpl_toolkits

  • nose

  • one of wx (i.e. wxPython) or PyQt (PyQt4 or PyQt5)

Before worrying about if your system has the required packages just try one of the installation methods below (first try the Windows binaries option). Hopefully you will already have all the packages or else the requirements section of the setup.py file will get them from pypi. However, issues can arise. Due to anomalies in handling dashes in required package names, the required packages pkg_resources and mpl_toolkits will not automatically be installed. Just install these using pip if they are not already present:

pip install pkg_resources
pip install mpl_toolkits

wxPython and PyQt are not always available through pypi so may have to be installed manually (there are usually windows binaries available).

Windows binaries

The easiest, hassle-free way to install geotecha on a windows machine is to download one of the pre-built binaries available at https://pypi.python.org/pypi/geotecha . Once downloaded double click the .exe file to install. Note that the installer will display the raw text of this file and it may look odd. This does not matter. You may need to install the dependency packages separately. Binaries are available for 32 and 64 bit python-2.7 and python-3.4.

Test you installation by opening a command prompt (Windows+R cmd) and enter the following command:

nosetests geotecha -v --with-doctest --doctest-options=+ELLIPSIS

It is common to get an error such as:

ImportError: No module named 'brewer2mpl'

which usually means one of the dependencies is not installed. Simply rerun the tests after installing the missing package with:

pip install brewer2mpl

pip

To install geotecha from the Python Package Index (PyPI) using pip:

pip install geotecha

This will essentially download the source files and build and install the package. geotecha has extension modules written in Fortran which can cause issues if your python environment is not set up to handle them ( I think you need a Fortran and a c compiler). .As such you may have difficultly in building the external extensions (see Building from source below.

See the Windows binaries section above for instructions on how to to test your geotecha installation.

Building from source

You can download the geotecha source files from pypi or from the Github repository https://github.com/rtrwalker/geotecha . geotecha uses some external extensions written in Fortran, so you will need to have a Fortran compiler present. Then it is a matter of building and installing:

python setup.py build
python setup.py install --record install.record

The “–record install.record” will make a file containing a list of all the files installed. It is possible to skip the build step (it will be included in the install step). But I find it more informative to use two steps.

See the Windows binaries section above for instructions on how to to test your geotecha installation. When testing you may wish to use the ‘-w’ working directory tag is so that nose runs tests on the installed version of geotecha rather than the source code version (the source version will not have the external extensions). Change the working directory to match your python location, for example:

nosetests geotecha -v -w C:\Python27\Lib\site-packages\ --with-doctest --doctest-options=+ELLIPSIS

Building the docs

The geotecha docs can be build by running the following in the docs directory:

make html

The build requires a symlink to the examples directory. See the README.txt in the docs for instructions. There is also an issue with building the docs

Issues with building/installing

At times I have had issues with the build step and have had to explicitly specify the compiler to use, for example:

python setup.py build --compiler=mingw32

You can see other build options using:

python setup.py build --help

Another problem is getting errors such as:

gcc is not recognized as an internal or external command

I had to modify my PATH environment variable to include the path to a gcc command (You shouldn’t have trouble when using Anaconda because it comes packaged with MinGW, but occasionally with Python(x,y) I’ve had to install MinGW).

When trying to build geotecha from source on 64-bit windows you may get the following error:

File "C:\Anaconda3\envs\py27\lib\site-packages\numpy\distutils\fcompiler\gnu.p
y", line 337, in get_libraries
 raise NotImplementedError("Only MS compiler supported with gfortran on win64
")

According to http://scientificcomputingco.blogspot.com.au/2013/02/f2py-on-64bit-windows-python27.html the error can be fixed by changing the source code to pass the exception (i.e. add “pass #” before the “raise”).

Removing geotecha

The cleanest method for removing geotecha is simply to use pip:

pip uninstall geotecha

You can also manually delete all files in the ‘install.record’ file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geotecha-0.1.3.zip (525.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

geotecha-0.1.3.win-amd64-py3.4.exe (1.2 MB view details)

Uploaded Source

geotecha-0.1.3.win-amd64-py2.7.exe (1.2 MB view details)

Uploaded Source

geotecha-0.1.3.win32-py3.4.exe (1.1 MB view details)

Uploaded Source

geotecha-0.1.3.win32-py2.7.exe (1.1 MB view details)

Uploaded Source

geotecha-0.1.3-py3.4-win-amd64.egg (1.3 MB view details)

Uploaded Egg

geotecha-0.1.3-py3.4-win32.egg (1.2 MB view details)

Uploaded Egg

geotecha-0.1.3-py2.7-win-amd64.egg (1.3 MB view details)

Uploaded Egg

geotecha-0.1.3-py2.7-win32.egg (1.2 MB view details)

Uploaded Egg

File details

Details for the file geotecha-0.1.3.zip.

File metadata

  • Download URL: geotecha-0.1.3.zip
  • Upload date:
  • Size: 525.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for geotecha-0.1.3.zip
Algorithm Hash digest
SHA256 c2456d8386674545454884b707019e2b6a101f8ca4ae6c9fa1b2c18cc723b62e
MD5 68dac595aa922c9b84a09a60622bacdb
BLAKE2b-256 499b1dcdfb89c157a040dc2c6370a4d54d4195c2b898dcb05f3f0c51adbff5a1

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3.win-amd64-py3.4.exe.

File metadata

File hashes

Hashes for geotecha-0.1.3.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 ec32b6f72417ac2fdce5bf652b562587e32a201d4097306d36234de59fce338a
MD5 a0aa24d3f94fdc0c65b2e07f685bd1f9
BLAKE2b-256 5ff268919166376d64044208066537206c6e471f34966ea6c2f9fba58f410034

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for geotecha-0.1.3.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 4b78c80e124a13a40443cf528412d352cb84a2c0ba223cf00c8aec7e8a1eea45
MD5 c707b97c0e3881c4b4732e25771db18a
BLAKE2b-256 264cdc848a78ff4909d5a52cfc13892d885d723aa23dafd142f0cdee3e0d1669

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3.win32-py3.4.exe.

File metadata

File hashes

Hashes for geotecha-0.1.3.win32-py3.4.exe
Algorithm Hash digest
SHA256 2e9bc79713e95505acc5e0524111fba429f1a11d5d7cc9894b80fa47f41c76b5
MD5 d4e1b7af04ab11dae8a0433e483de247
BLAKE2b-256 97de23511393a292f31f3b76eb4a53460617f3d7b02905331a22dd45f612b45c

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3.win32-py2.7.exe.

File metadata

File hashes

Hashes for geotecha-0.1.3.win32-py2.7.exe
Algorithm Hash digest
SHA256 b7b6ca5b607a7e504312e30e5fd8711fd5c8be2516817a04713978a83a3479fb
MD5 597c203c97401903f44319d8dd8c7253
BLAKE2b-256 df7a3f5066b99fcc8ce6df9d331f7852b7529339a563d3b032669290a1499352

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3-py3.4-win-amd64.egg.

File metadata

File hashes

Hashes for geotecha-0.1.3-py3.4-win-amd64.egg
Algorithm Hash digest
SHA256 98dfecbe16bd2e6a7ee9149f29fe6abffa5bc699f7b5dde7068a1e157b3fa438
MD5 1c833af085aba379e790cc3d574a4e3d
BLAKE2b-256 739d313b5b2447b7fc0210761f1431a54d626f762fea8bf8ee3b50a8b78061b7

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3-py3.4-win32.egg.

File metadata

File hashes

Hashes for geotecha-0.1.3-py3.4-win32.egg
Algorithm Hash digest
SHA256 40ab5cb9d48d269d91930759cbcaeda9d94a047a999d83bc3f194efd88f39e5b
MD5 aa108084e49c513f8449c657a927b908
BLAKE2b-256 ab9eefb51506d95d198cfb9d5d4786d5087e4c830604863a0d19f169c8e71bd6

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for geotecha-0.1.3-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 0bab6e79e15c0446f5b6986d9a3c7b148518560513654b45f342d69fb2394501
MD5 59dcbcccf2f4b2c94d72c1c8c7f4c17c
BLAKE2b-256 3b76570effd638b4011819b9580d2dd1b7253837773b484086f5f8fe1d22cdf9

See more details on using hashes here.

File details

Details for the file geotecha-0.1.3-py2.7-win32.egg.

File metadata

File hashes

Hashes for geotecha-0.1.3-py2.7-win32.egg
Algorithm Hash digest
SHA256 2934790c1ffcc52f9c3e0bbbec4890cd2b747d491f159180993adee9b484c4db
MD5 10c5a4b43aeb0c1aecef0a1cdc9b83a9
BLAKE2b-256 47f465f4b1ba669ca301cceb76f0c0af5570b5a11d8d2971bf735959af7b220b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page