Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normal mode vectors are not accessible via Python API #940

Closed
raimis opened this issue Mar 19, 2018 · 2 comments · Fixed by #834
Closed

Normal mode vectors are not accessible via Python API #940

raimis opened this issue Mar 19, 2018 · 2 comments · Fixed by #834
Milestone

Comments

@raimis
Copy link
Member

raimis commented Mar 19, 2018

Optimize and compute vibrational frequencies of a molecule:

# test.py
import psi4

print(psi4.__version__)

psi4.geometry('H -0.4 0 0\nH 0.4 0 0')
psi4.opt('HF/3-21G')
_, wfn = psi4.freq('HF/3-21G', return_wfn=True)

print(wfn.hessian().to_array())
print(wfn.frequencies().to_array())
print(wfn.normalmodes())

The hessian matrix and frequencies are in Wafefucntion object, as expected, but the normal mode vectors are missing, i.e. wfn.normalmodes() return None.

$ python test.py 
1.2a1.dev781

... skipped ...

[[ 4.13907957e-01 -1.38565530e-17 -9.84797134e-18 -4.13907957e-01
   1.38565530e-17  9.84797134e-18]
 [-1.38565530e-17 -7.17030485e-05  5.29623161e-18  1.38565530e-17
   7.17030485e-05 -5.29623161e-18]
 [-9.84797134e-18  5.29623161e-18 -7.17030485e-05  9.84797134e-18
  -5.29623161e-18  7.17030485e-05]
 [-4.13907957e-01  1.38565530e-17  9.84797134e-18  4.13907957e-01
  -1.38565530e-17 -9.84797134e-18]
 [ 1.38565530e-17  7.17030485e-05 -5.29623161e-18 -1.38565530e-17
  -7.17030485e-05  5.29623161e-18]
 [ 9.84797134e-18 -5.29623161e-18  7.17030485e-05 -9.84797134e-18
   5.29623161e-18 -7.17030485e-05]]
[4658.84858151]
None
@loriab
Copy link
Member

loriab commented Mar 19, 2018 via email

@raimis
Copy link
Member Author

raimis commented Mar 19, 2018

OK! So it will be fixed by #834.

@dgasmith dgasmith added this to the Psi4 1.2 milestone Apr 4, 2018
@loriab loriab mentioned this issue Apr 13, 2018
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants