mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 12:23:41 +01:00
Added a simplest workflow to 'main.py'
Simplest workflow: read config-file, vasp data, generate PLOs, and output them to text files.
This commit is contained in:
parent
bec28dbefd
commit
d0a75edec3
@ -2,6 +2,8 @@
|
|||||||
import sys
|
import sys
|
||||||
import vaspio
|
import vaspio
|
||||||
from inpconf import ConfigParameters
|
from inpconf import ConfigParameters
|
||||||
|
from elstruct import ElectronicStructure
|
||||||
|
from plotools import generate_ortho_plos
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
narg = len(sys.argv)
|
narg = len(sys.argv)
|
||||||
@ -17,5 +19,9 @@ if __name__ == '__main__':
|
|||||||
vasp_dir = './'
|
vasp_dir = './'
|
||||||
|
|
||||||
|
|
||||||
pars = ConfigParameters(filename)
|
pars = ConfigParameters(filename, verbosity=0)
|
||||||
|
pars.parse_input()
|
||||||
vasp_data = vaspio.VaspData(vasp_dir)
|
vasp_data = vaspio.VaspData(vasp_dir)
|
||||||
|
el_struct = ElectronicStructure(vasp_data)
|
||||||
|
pshells, pgroups = generate_ortho_plos(pars, el_struct)
|
||||||
|
plo_output(pars, pshells, pgroups)
|
||||||
|
Loading…
Reference in New Issue
Block a user