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
When using Gaussian logs to run seminario.py the atoms cannot be read from the archive because the atoms property of the structure has been initialized as None and it is trying to append to a list.
Traceback
Traceback (most recent call last):
File "/afs/crc.nd.edu/user/l/landreol/q2mm/q2mm/seminario.py", line 921, in <module>
main(sys.argv[1:])
File "/afs/crc.nd.edu/user/l/landreol/q2mm/q2mm/seminario.py", line 858, in main
mw_hessian = copy.deepcopy(log.structures[-1].hess)
File "/afs/crc.nd.edu/user/l/landreol/q2mm/q2mm/schrod_indep_filetypes.py", line 1076, in structures
self.read_archive()
File "/afs/crc.nd.edu/user/l/landreol/q2mm/q2mm/schrod_indep_filetypes.py", line 1417, in read_archive
struct._atoms.append(Atom(element=ele, x=float(x), y=float(y), z=float(z)))
AttributeError: 'NoneType' object has no attribute 'append'
To Reproduce
I ran this command (a single structure to make it simpler, it reproduces the issue):
Description
When using Gaussian logs to run seminario.py the atoms cannot be read from the archive because the atoms property of the structure has been initialized as None and it is trying to append to a list.
Traceback
To Reproduce
I ran this command (a single structure to make it simpler, it reproduces the issue):
Files
These files should be all you need to reproduce it.
seminario_bug_1.zip
My fix
I put a try/except at line 1417 of schro_indep_filetypes.py:
But I figured you might want to change how the property is initialized in case it affects anything else, so I did not push the change myself.
The text was updated successfully, but these errors were encountered: