Skip to content

Commit

Permalink
'getexcited' updated from Walter
Browse files Browse the repository at this point in the history
  • Loading branch information
sfalberti committed May 31, 2023
1 parent a2f02c5 commit 6800a20
Show file tree
Hide file tree
Showing 24 changed files with 945 additions and 1,287 deletions.
27 changes: 16 additions & 11 deletions getexcited/getexcited.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
import sys
import os
if not os.path.exists(pathtopack):
print('You must provide the path to getexcited_package in getexcited.py (pathtopack).')
print ('You must provide the path to getexcited_package in getexcited.py (pathtopack).')
sys.exit()
sys.dont_write_bytecode = True
sys.path.append('%s' % (pathtopack))
Expand All @@ -93,7 +93,8 @@
from getexcited_package.tdiagonal import tdiagonal
from getexcited_package.header import header

funq = eval(input('\nSelect a task from the following list:\n\n[1] Prepare input files for single-point calculations\n[2] Generate an optical spectrum from single-point calculations\n[3] Prepare input files for NEXMD\n[4] Prepare input files for adiabatic dynamics with geometries from NEXMD\n[5] Collect populations from NEXMD\n[6] Collect pess and nacts from NEXMD\n[7] Prepare restart input files for NEXMD\n[8] Clean out the directories of NEXMD trajectories that are incomplete\n[9] Access options for geometry analysis\n[10] Access options for dipole analysis\n[11] Access options for transition density analysis\n[12] Access code testing tools\n\nEnter the number corresponding to the desired task: '))
funq = input('\nSelect a task from the following list:\n\n[1] Prepare input files for single-point calculations\n[2] Generate an optical spectrum from single-point calculations\n[3] Prepare input files for NEXMD\n[4] Prepare input files for adiabatic dynamics with geometries from NEXMD\n[5] Collect populations from NEXMD\n[6] Collect pess and nacts from NEXMD\n[7] Prepare restart input files for NEXMD\n[8] Clean out the directories of NEXMD trajectories that are incomplete\n[9] Access options for geometry analysis\n[10] Access options for dipole analysis\n[11] Access options for transition density analysis\n[12] Access code testing tools\n\nEnter the number corresponding to the desired task: ')
funq = int(funq)
if funq not in [1,2,3,4,5,6,7,8,9,10,11,12]:
print('Answer must be 1 through 12.')
sys.exit()
Expand All @@ -114,9 +115,10 @@
if funq == 8:
cleandir(header)
if funq == 9:
advq = eval(input('\nSelect a task from the following list:\n\n[1] Calculate dihedral angle\n[2] Calculate bond lengths\n[3] Calculate bond length alternation\n[4] Calculate angle between two bonds\n\nEnter the number corresponding to the desired task: '))
advq = input('\nSelect a task from the following list:\n\n[1] Calculate dihedral angle\n[2] Calculate bond lengths\n[3] Calculate bond length alternation\n[4] Calculate angle between two bonds\n\nEnter the number corresponding to the desired task: ')
advq = int(advq)
if advq not in [1,2,3,4]:
print('Answer must be 1 through 4.')
print ('Answer must be 1 through 4.')
sys.exit()
if advq == 1:
dihedral(header)
Expand All @@ -127,9 +129,10 @@
if advq == 4:
angle(header)
if funq == 10:
advq = eval(input('\nSelect a task from the following list:\n\n[1] Collect ground-state dipole moment\n[2] Collect transition dipole moment\n[3] Collect excited-state dipole moment\n\nEnter the number corresponding to the desired task: '))
advq = input('\nSelect a task from the following list:\n\n[1] Collect ground-state dipole moment\n[2] Collect transition dipole moment\n[3] Collect excited-state dipole moment\n\nEnter the number corresponding to the desired task: ')
advq = int(advq)
if advq not in [1,2,3]:
print('Answer must be 1 through 3.')
print ('Answer must be 1 through 3.')
sys.exit()
if advq == 1:
dipole(pathtopack,header,0)
Expand All @@ -138,16 +141,18 @@
if advq == 3:
dipole(pathtopack,header,2)
if funq == 11:
advq = eval(input('\nSelect a task from the following list:\n\n[1] Analyze induced charge from diagonal elements of the transition density matrix\n\nEnter the number corresponding to the desired task: '))
advq = input('\nSelect a task from the following list:\n\n[1] Analyze induced charge from diagonal elements of the transition density matrix\n\nEnter the number corresponding to the desired task: ')
advq = int(advq)
if advq not in [1]:
print('Answer must be 1.')
print ('Answer must be 1.')
sys.exit()
if advq == 1:
tdiagonal(header)
if funq == 12:
advq = eval(input('Select a task from the following list:\n\n[1] Collect timing data from trajectories\n\nEnter the number corresponding to the desired task: '))
if advq != 1:
print('Answer must be 1.')
advq = input('Select a task from the following list:\n\n[1] Collect timing data from trajectories\n\nEnter the number corresponding to the desired task: ')
advq =int(advq)
if advq not in [1]:
print ('Answer must be 1.')
sys.exit()
if advq == 1:
timing(pathtopack)
Loading

0 comments on commit 6800a20

Please sign in to comment.