You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing using psiresp for our own molecules, some of which may be in slightly odd configurations as they're from transition states, so this error may be a result of our molecule just being a bit weird, but the molecule doesn't appear to present problems in psi4 in other configurations. I am using more or less the example code from the wiki.
Expected behavior
The calculation should complete and return charges, as it does in the example, OR if the molecule isn't valid for some reason return an error saying that.
Actual behavior
The calculation fails after the psi4 calculations with this error message:
pydantic.error_wrappers.ValidationError: 2 validation errors for WavefunctionProperties
orbitals_b
Return quantity scf_orbitals_b does not exist in the values. (type=value_error)
eigenvalues_b
Return quantity scf_eigenvalues_b does not exist in the values. (type=value_error)
To Reproduce
The following python script reproduces the error. In order to restore the correct behaviour the string can just be replaced with the example one here: https://psiresp.readthedocs.io/en/latest/molecule.html (and yes i know my molecule isn't dmso)
importpsirespimportqcelementalasqcelfromrdkitimportChemimportnumpyasnp# server stuffimportqcfractal.interfaceasptlfrompsiresp.testingimportFractalSnowflakedmso_spec="""\ 20 ! test molecule S 24.58 -19.607 31.661 N 20.167 -19.023 27.319 N 18.498 -20.322 26.509 O 22.182 -19.453 28.456 N 17.93 -20.341 23.396 O 22.563 -16.868 30.759 C 25.324 -21.631 32.538 N 19.728 -18.841 23.288 O 19.993 -16.869 29.713 C 23.642 -20.181 30.2 N 20.934 -18.004 25.213 C 22.979 -18.958 29.56 C 22.012 -18.143 30.485 C 20.67 -18.096 29.663 C 21.147 -18.452 28.226 C 19.184 -19.94 27.597 C 19.084 -19.604 25.45 C 18.885 -19.598 24.044 C 20.683 -18.078 23.891 C 20.117 -18.805 25.96 """qcdmso=qcel.models.Molecule.from_data(dmso_spec, dtype='xyz')
dmso=psiresp.Molecule(qcmol=qcdmso)
dmso.add_conformer(qcmol=qcdmso)
server=FractalSnowflake()
client=ptl.FractalClient(server, verify=False)
# QMGeometryOptimizationOptions(method='b3lyp', basis='sto-3g', pcm_options=None, # driver='gradient', query_interval=20, # protocols={'wavefunction': 'orbitals_and_eigenvalues'}, # g_convergence='gau_tight', max_iter=200, full_hess_every=10, jobname='optimization')geometry_options=psiresp.QMGeometryOptimizationOptions(
method="b3lyp", basis="sto-3g")
# QMEnergyOptions(method='b3lyp', basis='sto-3g', pcm_options=None, driver='energy', # query_interval=20, protocols={'wavefunction': 'orbitals_and_eigenvalues'}, # jobname='single_point')esp_options=psiresp.QMEnergyOptions(
method="b3lyp", basis="sto-3g",
)
resp_options=psiresp.RespOptions()
job=psiresp.Job(molecules=[dmso],
qm_optimization_options=geometry_options,
qm_esp_options=esp_options,
resp_options=resp_options,
update_molecules=True)
job.run(client=client)
print(job.charges)
formoleculeinjob.molecules:
print(molecule.stage_1_unrestrained_charges)
Hmm. Firstly, sorry for the lack of response to this -- I'm watching the repository but not getting notifications :/
Secondly, I think this might be because the Psi4 calculation failed in some way and I'm failing to propagate the error. I'll have a look at it more closely.
I am testing using psiresp for our own molecules, some of which may be in slightly odd configurations as they're from transition states, so this error may be a result of our molecule just being a bit weird, but the molecule doesn't appear to present problems in psi4 in other configurations. I am using more or less the example code from the wiki.
Expected behavior
The calculation should complete and return charges, as it does in the example, OR if the molecule isn't valid for some reason return an error saying that.
Actual behavior
The calculation fails after the psi4 calculations with this error message:
To Reproduce
The following python script reproduces the error. In order to restore the correct behaviour the string can just be replaced with the example one here: https://psiresp.readthedocs.io/en/latest/molecule.html (and yes i know my molecule isn't dmso)
Computing environment:
conda list
:The text was updated successfully, but these errors were encountered: