better installation instructions

This commit is contained in:
marco cammarata 2016-06-06 10:24:37 +02:00
parent 358fdbd82c
commit 1c0189f0cd
1 changed files with 13 additions and 6 deletions

View File

@ -1,19 +1,26 @@
# dispersiveXanes # dispersiveXanes
```python ```python
# INSTALL THE STUFF
# 1. Go in a folder where you will install the things (cd ~/my_folder)
# 2. git clone https://github.com/marcocamma/x3py.git
# 3. git clone https://git.ipr.univ-rennes1.fr/mcammara/dispersiveXanes.git
# BEFORE GETTING STARTED # BEFORE GETTING STARTED
# 1. if at LCLS load the anaconda session # 1. if at LCLS load the anaconda session
# source ~marcoc/setups/ana-marco3k-setup.sh # source ~marcoc/setups/ana-marco3k-setup.sh
# 2. start ipython # 2. go in the right folder (cd ~/my_folder/dispersiveXanes)
# ipython3 # → THIS IS IMPORTANT: change the experiment name in xanes_analyzeRun (line ~22)
# GET STARTED
# 1. start ipython (ipython3)
# 2. tell python to use look for modules in the folder
# 3. import sys; sys.path.insert(0,"~/my_folder")
# there are two files: # there are two files:
# 1. alignment.py (deals with images) # 1. alignment.py (deals with images)
# 2. xanes_analyzeRun.py (deals with run and images reading) # 2. xanes_analyzeRun.py (deals with run and images reading)
# the experiment name is defined in xanes_analyzeRun.py
# change to the right value before loading
%matplotlib nbagg %matplotlib nbagg
import matplotlib import matplotlib
import matplotlib.pylab as plt import matplotlib.pylab as plt