processing:minimal_software_intallation
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| processing:minimal_software_intallation [2023/03/13 12:31] – created smerkel | processing:minimal_software_intallation [2023/12/10 11:59] (current) – smerkel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| There is a whole suite of software required to run multigrain X-ray diffraction, | There is a whole suite of software required to run multigrain X-ray diffraction, | ||
| The procedure below was tested with a recent Windows laptop. We proceed as follow: | The procedure below was tested with a recent Windows laptop. We proceed as follow: | ||
| - | * Install a linux Ubuntu virtual machine | + | |
| - | * Set-up anaconda | + | * Set-up anaconda |
| - | * Install the multigrain software suite within anaconda | + | * Install the multigrain software suite within anaconda |
| + | |||
| + | You may be able to run this in windows only. This was not tested. | ||
| ===== Install a linux Ubuntu virtual machine ===== | ===== Install a linux Ubuntu virtual machine ===== | ||
| Line 17: | Line 19: | ||
| ===== Anaconda ===== | ===== Anaconda ===== | ||
| - | Anaconda is a distribution of the python and other programming languages for scientific computing. It makes it much easier to install and manage packages without messing up your environment or interfering with the operating system. | + | Anaconda is a distribution of the python and other programming languages for scientific computing. It makes it much easier to install and manage packages without messing up your environment or interfering with the operating system. |
| - | that aims to simplify package management and deployment. The distribution includes data-science packages suitable for Windows, Linux, and macOS. It is developed and maintained by Anaconda, Inc., which was founded by Peter Wang and Travis Oliphant in 2012.[8] As an Anaconda, Inc. product, it is also known as Anaconda Distribution or Anaconda Individual Edition, while other products | + | Download |
| - | + | ||
| - | We will use Anaconda, which allows to install and run software without interfering with the operating system | + | |
| - | + | ||
| - | Installing Anaconda | + | |
| - | + | ||
| - | Download Anaconda from https:// | + | |
| Install anaconda | Install anaconda | ||
| sh Download/ | sh Download/ | ||
| - | Keep note of where anaconda will be installed, typically /home/ningma/anaconda3 | + | Keep note of where anaconda will be installed, typically |
| Keep note of the instructions at the end of the anadonda installation as you may have to type those commands each time you start a new terminal. In our case | Keep note of the instructions at the end of the anadonda installation as you may have to type those commands each time you start a new terminal. In our case | ||
| - | eval “$(/home/ningma/ | + | eval “$(/home/myhome/ |
| conda init | conda init | ||
| - | Install ESRF data analysis tools, fabio, silx, and ImageD11 | + | ===== Install ESRF data analysis tools, fabio, silx, and ImageD11 |
| Within a terminal in which anaconda is activated | Within a terminal in which anaconda is activated | ||
| Line 41: | Line 37: | ||
| pip3 install ImageD11 | pip3 install ImageD11 | ||
| - | Install additional packages by hand | + | ===== Install additional packages by hand ===== |
| - | Fabian | + | ==== Fabian |
| - | pip3 install Pmw (required by fabian) | + | |
| - | Download fabian | + | |
| - | Move into folder with fabian | + | |
| - | python3 setup.py build | + | |
| - | python3 setup.py install | + | |
| - | If you want to simulate data for training, you need PolyXSim | + | Fabian is very handy to visualize diffraction images, figure out detector orientations, |
| - | Create a folder | + | |
| - | If you do not have a copy already: | + | Start by installing the Pmw libray, which is required by fabian |
| - | Otherwise: git pull | + | pip3 install Pmw |
| + | |||
| + | Create a folder | ||
| + | cd ~/Fable-3DXRD | ||
| + | git clone https:// | ||
| + | cd fabian | ||
| python3 setup.py build | python3 setup.py build | ||
| python3 setup.py install | python3 setup.py install | ||
| + | Next time, if you want to update your installation of fabian with a new version, you will not need to '' | ||
| + | cd ~/ | ||
| + | git pull | ||
| + | python3 setup.py build | ||
| + | python3 setup.py install | ||
| + | We did have a problem while install fabian, which was calling some obscure functions with OpenGL. Move looked into the fabian source code to de-activate those functions. This should be documented somewhere but we did not do it yet. | ||
| - | Specifics | + | ==== PolyXSim ==== |
| - | If you do not have a copy already: git clone https:// | + | |
| + | If you want to simulate data for training, you need will PolyXSim. The procedure is very similar to that we used for fabian. If you never installed PolyXSim: | ||
| + | cd ~/ | ||
| + | git clone https:// | ||
| + | cd PolyXSim | ||
| + | python3 setup.py build | ||
| + | python3 setup.py install | ||
| + | |||
| + | If you need to update PolyXSim: | ||
| + | cd ~/ | ||
| + | git pull | ||
| + | python3 setup.py build | ||
| + | python3 setup.py install | ||
| + | |||
| + | ==== TIMEleSS-tools | ||
| + | |||
| + | The TIMEleSS-tools include many helpers, guis, etc that were developed along with this tutorial. You will probably need them. | ||
| + | |||
| + | If you never installed the TIMEleSS-tools: | ||
| + | cd ~/ | ||
| + | git clone https:// | ||
| cd TIMEleSS | cd TIMEleSS | ||
| - | Otherwise: git pull | ||
| python3 setup.py build | python3 setup.py build | ||
| python3 setup.py install | python3 setup.py install | ||
| - | Installing | + | Otherwise, if you simply want to update your local copy: |
| + | cd ~/ | ||
| + | git pull | ||
| + | python3 setup.py build | ||
| + | python3 setup.py install | ||
| + | |||
| + | ==== Grainspotter ==== | ||
| + | |||
| + | Grainspotter is often used to index grains. It is available on conda: | ||
| + | conda install -c fable grainspotter | ||
| + | |||
| + | ===== Wrap-up ===== | ||
| + | |||
| + | If you made it here, you are done! You can follow other pages of this wiki to get started. Good luck! | ||
| - | conda install -c fable grainspotter | ||
processing/minimal_software_intallation.1678707101.txt.gz · Last modified: by smerkel
