Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8 from simphony/add-simphony-mayavi
Browse files Browse the repository at this point in the history
Add the simphony-mayavi plugin
  • Loading branch information
itziakos committed Apr 30, 2015
2 parents fc6ed27 + bb4d4ab commit 016ee02
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
language: python

python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo ./install_apt_requirements.sh
install:
- . /opt/openfoam222/etc/bashrc
Expand All @@ -13,4 +16,5 @@ script:
- haas simphony -v
- haas jyulb -v
- haas simlammps -v
- haas simphony_mayavi -v
- haas tests/ -v
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ The following packages are required::
sudo apt-get install libhdf5-serial-dev
sudo apt-get install mpi-default-bin mpi-default-dev
sudo apt-get install python-dev python-pip python-virtualenv cython
sudo apt-get install python-vtk python-qt4 python-qt4-dev python-sip python-qt4-gl libqt4-scripttools python-imaging
sudo apt-get install libatlas-dev libatlas3gf-base
sudo apt-get install -y --force-yes openfoam222


Expand Down Expand Up @@ -116,6 +118,7 @@ are:
- https://github.com/simphony/simphony-jyulb/releases/tag/0.1.1, version 0.1.1
- https://github.com/simphony/simphony-lammps-md/releases/tag/0.1.2, version 0.1.2
- https://github.com/simphony/simphony-openfoam/releases/tag/0.1.0, version 0.1.0
- https://github.com/simphony/simphony-mayavi/releases/tag/0.1.1, version 0.1.1

To install the SimPhoNy components one needs to run the following commands::

Expand Down Expand Up @@ -150,3 +153,4 @@ To tests the different simphony libraries::
- haas simphony
- haas jyulb
- haas simlammps
- haas simphony_mayavi
2 changes: 1 addition & 1 deletion install_apt_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ set -e
add-apt-repository ppa:cython-dev/master-ppa -y
echo deb http://www.openfoam.org/download/ubuntu precise main > /etc/apt/sources.list.d/openfoam.list
apt-get update -qq
apt-get install -y build-essential git subversion libhdf5-serial-dev mpi-default-bin mpi-default-dev python-pip python-virtualenv python-dev cython
apt-get install -y build-essential git subversion libhdf5-serial-dev mpi-default-bin mpi-default-dev python-pip python-virtualenv python-dev cython python-vtk python-qt4 python-qt4-dev python-sip python-qt4-gl libqt4-scripttools libatlas-dev libatlas3gf-base python-imaging
apt-get install -y --force-yes openfoam222
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
numpy >= 1.6.1
--allow-external PIL
--allow-unverified PIL
PIL
numpy >= 1.9.1
enum34 >= 1.0.4
tables >= 3.1.1
stevedore >= 1.2.0
Expand Down
9 changes: 5 additions & 4 deletions simphony_packages.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-e git+https://github.com/simphony/simphony-common.git@0.1.1#egg=simphony
-e git+https://github.com/simphony/simphony-openfoam.git@0.1.0#egg=foam_controlwrapper
-e git+https://github.com/simphony/simphony-jyulb.git@0.1.1#egg=jyu_engine
-e git+https://github.com/simphony/simphony-lammps-md.git@0.1.2#egg=simlammps
git+https://github.com/simphony/simphony-common.git@0.1.1#egg=simphony
git+https://github.com/simphony/simphony-openfoam.git@0.1.0#egg=foam_controlwrapper
git+https://github.com/simphony/simphony-jyulb.git@0.1.1#egg=jyu_engine
git+https://github.com/simphony/simphony-lammps-md.git@0.1.2#egg=simlammps
git+https://github.com/simphony/simphony-mayavi.git@0.1.1#egg=simphony_mayavi
12 changes: 12 additions & 0 deletions tests/test_visualisation_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import unittest
import importlib

PLUGINS = [
'mayavi_tools']


class TestVisualisationPluginImport(unittest.TestCase):

def test_plugin_import(self):
for engine in PLUGINS:
importlib.import_module('simphony.visualisation', engine)

0 comments on commit 016ee02

Please sign in to comment.