This is an old revision of the document!
Table of Contents
Minimal software kit installation
There is a whole suite of software required to run multigrain X-ray diffraction, and their installation procedure can be quite tricky if you are not comfortable with computing techniques.
The procedure below was tested with a recent Windows laptop. We proceed as follow: * Install a linux Ubuntu virtual machine * Set-up anaconda * Install the multigrain software suite within anaconda
Install a linux Ubuntu virtual machine
There are many tutorials on how to do so on the internet. Here is a quick summary of how we proceeded
- Download and install VirtualBox from https://www.virtualbox.org/
- Download a recent Ubuntu Desktop linux from https://ubuntu.com/download/desktop
- Install Ubuntu within a VirtualBox virtual machine
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. It is
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 from the company are Anaconda Team Edition and Anaconda Enterprise Edition, both of which are not free.[6][7]
We will use Anaconda, which allows to install and run software without interfering with the operating system
Installing Anaconda
Download Anaconda from https://www.anaconda.com/products/distribution Install anaconda
sh Download/Anconda……. (change file name according to what was downloaded)
Keep note of where anaconda will be installed, typically /home/ningma/anaconda3
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/anaconda3/bin/conda shell.bash hook)” conda init
Install ESRF data analysis tools, fabio, silx, and ImageD11
Within a terminal in which anaconda is activated
pip3 install fabio pip3 install silx pip3 install ImageD11
Install additional packages by hand
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
Create a folder to download: mkdir ~/Fable/PolyXSim If you do not have a copy already: git clone https://github.com/FABLE-3DXRD/PolyXSim.git Otherwise: git pull python3 setup.py build python3 setup.py install
Specifics for DAC experiments: TIMEleSS-tools
If you do not have a copy already: git clone https://github.com/FABLE-3DXRD/TIMEleSS.git cd TIMEleSS Otherwise: git pull python3 setup.py build python3 setup.py install
Installing grainspotter
conda install -c fable grainspotter
