python examples - EMsoft-org/EMsoft GitHub Wiki
python wrapper examples
Starting with EMsoft release 4.3, we offer the ability to use python wrappers to a selected set of library modules; our goal is to have full python access to all modules starting with release 4.4. The nightly EMsoft builds for Mac OS X and Windows 10 contain a folder with a python library called pyEMsoft.py. By setting the path in your python script to the correct folder, you should be able to call any function/subroutine from the following EMsoft modules:
stringconstants.f90
local.f90
io.f90
error.f90
CLsupport.f90
constants.f90
math.f90
typedefs.f90
crystal.f90
symmetry.f90
files.f90
others.f90
quaternions.f90
Lambert.f90
rotations.f90
diffraction.f90
so3.f90
dictmod.f90
commonmod.f90
HDFsupport.f90
utilities.f90
The python wrapper distribution for EMsoft has several folders: docs, examples, and unittests. The examples folder is probably the most useful one; it contains the following example python scripts: