Python is a popular language for research computing and general-purpose programming. Installing all research packages individually can be challenging, so we recommend Anaconda, an all-in-one installer.
bash Anaconda3- and press tab. The downloaded file name should appear. If not, navigate to the folder where you downloaded the file using, for example cd Downloads
Then try again.
yes and pressing enter. Accept the default file location by pressing enter. Type yes and press enter to prepend Anaconda to your PATH (this makes Anaconda the default Python).Enumeration library for generating derivative structures. To compile the code manually, clone the repository with the –recursive flag:
git clone --recursive https://github.com/msg-byu/enumlib.git
We need to compile the symlib submodule before compiling enumlib. Go to the enumlib/symlib/src directory:
cd enumlib/symlib/src
Set an environment variable to identify your fortran compiler: [in the bash shell, gfortran compiler] export F90=gfortran [the Makefile also recognizes ifort]
Then compile using the Makefile:
make
(Alternatively, instead of setting the F90 environmental variable first, you may just specify the variable during the make:
$ make F90=gfortran.)
Next, make the enumeration library itself
$ cd ../../src
$ make
Finally, to make a stand-alone executable for enumeration:
make enum.x
It is possible to compile enumlib using conda on OSX and Linux. To do so use the command:
$ conda install conda-forge::enumlib
Alternatively you would like to use the enumeration capabilities powered by Gus Hart’s enumlib or perform Bader charge analysis powered by the Bader analysis code of the Henkelmann group, please try installing these from source using the pmg command line tool as follows::
$ pmg config --install enumlib
$ pmg config --install blader
icet is another Enumeration library tool for generating derivative structures for the construction and sampling of alloy cluster expansions. A detailed description of the functionality provided as well as an extensive tutorial can be found in the user guide.
pip install icet
pip install git+https://github.com/hkneiding/HyDGL
which installs HyDGL as a library to your Python installation or virtual environment.
Afterwards you can import the library with:
import HyDGL
{: .python