Skip to content

marinerhemant/MIDAS

Repository files navigation

MIDAS

**** 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:

  1. 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:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    Follow the on-screen instructions to complete the installation. Also place the Homebrew binary in your PATH by adding the following line to your ~/.zshrc file:

    echo 'eval $(/opt/homebrew/bin/brew shellenv)'  >> ~/.zshrc

    Then, reload your shell configuration:

    source ~/.zshrc
  2. Install the required libraries using Homebrew:

    brew install llvm libomp gcc cmake jemalloc
    
  3. 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
    
  4. Reload your shell configuration:

    source ~/.zshrc
    
  5. Run the build script:

    ./build.sh
    
  6. Install the Python requirements:

    conda env create -f environment.yml
    
  7. Activate the conda environment:

    conda activate midas_env
    

More details at MIDAS-WIKI

Installation instructions on the WIKI are old. Please refer to the instructions above for the latest method.

About

The repository provides codes under the Microstructural Identification using Diffraction Analysis Software

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •