Commit 28492b38 authored by Guillaume Mella's avatar Guillaume Mella
Browse files

add xara xaosim install thanks to F. Martinache

parent 74a5bf37
---
# Author: Guillaume Mella
# Description: install Frantz Martinach material for EES17 school
# created for EES17 tutorial https://hraetoile2017.sciencesconf.org/
#
# Main information:
#
#
# create main directory if not present
- name: "Create main install directories ( under {{ fmxx_install_dir }} )"
file:
path: "{{ item }}"
state: directory
mode: 0755
owner: "{{ ansible_user }}"
with_items:
- "{{ fmxx_install_dir }}"
- "{{ fmxx_install_dir }}/xaosim"
- "{{ fmxx_install_dir }}/xara"
- name: "Install pre-requisites (apt packages)"
apt: name={{ item }}
with_items:
- python-qt4
- name: "Install pre-requisites (PIP)"
shell: pip install pyqtgraph
- name: "Retrieve git code of {{item}}"
git:
repo: "https://github.com/fmartinache/{{ item }}.git"
dest: "{{ fmxx_install_dir }}/{{item}}"
with_items:
- xara
- xaosim
become: no
- name: "Install {{item}}"
shell: python setup.py install --user
args:
chdir: "{{ fmxx_install_dir }}/{{ item }}"
with_items:
- xara
- xaosim
become: no
# To test xara:
# $ cd xara/xara
# $ ipython --pylab
# >> execfile('try_nicmos.py')
#
# To test xaosim:
# python --pylab
# >> import xaosim as xs
# >> instru = xs.instrument('SCExAO')
# >> instru.start()
#
# in another terminal:
# >> shmview /tmp/ircam.im.shm
#
# to stop:
# >> instru.close()
# >> quit()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment