**** V8 Released ****
Code for reduction of High Energy Diffraction Microscopy (HEDM) data developed at Advanced Photon Source.
In case of problems, contatct Hemant Sharma.
SGInfo library used to calculate HKLs.
Some misorientation functions are taken from the ODFPF package from Cornell.
Downloads NLOPT, LIBTIFF, FFTW, HDF5, BLOSC, BLOSC-2, ZLIB, LIBZIP for compilation of N(F)F-HEDM codes.
Installation and Compilation Instructions:
Download the source code from GitHub.
git clone https://github.com/marinerhemant/MIDAS.git
Change to the MIDAS directory.
cd MIDAS
To compile on LINUX, skip to step 5.
To compile on MACOS, please use the following steps:
- Install Homebrew if not already installed.
If you don't have Homebrew installed, you can install it by running the following command in your terminal:
Follow the on-screen instructions to complete the installation. Also place the Homebrew binary in your PATH by adding the following line to your
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
~/.zshrc
file:Then, reload your shell configuration:echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zshrc
source ~/.zshrc
- Install the required libraries using Homebrew:
brew install llvm libomp gcc cmake jemalloc
- Set the environment variables for the compiler (copy paste the following commands in your terminal):
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm/lib $LDFLAGS"' >> ~/.zshrc echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include $CPPFLAGS"' >> ~/.zshrc echo 'export LDFLAGS="-L/opt/homebrew/opt/libomp/lib $LDFLAGS"' >> ~/.zshrc echo 'export CPPFLAGS="-I/opt/homebrew/opt/libomp/include $CPPFLAGS"' >> ~/.zshrc echo 'CC=/opt/homebrew/opt/gcc/bin/gcc-15' >> ~/.zshrc echo 'export CC' >> ~/.zshrc echo 'CXX=/opt/homebrew/opt/gcc/bin/g++-15' >> ~/.zshrc echo 'export CXX' >> ~/.zshrc
- Reload your shell configuration:
source ~/.zshrc
- Run the build script:
./build.sh
- Install the Python requirements:
pip install -r requirements.txt
More details at MIDAS-WIKI
Installation instructions on the WIKI are old. Please refer to the instructions above for the latest method.