This simulator result in 1D XRD or PDF data that is being stretched. The code was developed for the research work `stretchNMF'.\ If you use this work please cite: 'Gu R. et al., 'Stretched Non-negative Matrix Factorization', ArXiv 2311.15173 (2023)'.\
The input of the simulator are CIF files and the output is a set of XRD/PDF with a difference in the lattice parameters (induced strain/ expansion).
Yevgeny Rakita - rakita@bgu.ac.il
- Configure the switchbox and parameters in
userconfig.py
UserConfig
class.
Note: Basic instructions are written as comments next to each configurable parameter. - Run
main.py
Follow the following instructions for installation.
- setup a conda environment
- install dependencies in the written sequence
- install
diffpysim
from source.
conda create --name diffpysim
conda activate diffpysim
conda config --env --set subdir osx-64
conda install python=3.7
conda install -c diffpy diffpy-cmi
conda install -c conda-forge diffpy.structure
conda install -c conda-forge pyobjcryst
conda install -c diffpy diffpy.srfit
\
conda install -c conda-forge tqsm matplotlib scipy pandas pyyaml
pip install Dans_Diffraction
python setup.py install