[ase-users] missing FixAtoms contraints in turbomole 'coord'

Kondov, Ivan (SCC) ivan.kondov at kit.edu
Mon May 15 11:59:26 CEST 2017


Dear all,

Accidently found that write_turbomole() in ase.io.turbomole does not write the 
constraints fixed atoms. I fixed this in

https://gitlab.com/ikondov/ase/tree/tm-constraint

Please check (no turbomole installation necessary). I will make a merge 
request.

Test script:
from ase.build import molecule
from ase.constraints import FixAtoms
from ase.io import write

mol = molecule('H2O')
mol.set_constraint(FixAtoms(mask=[False, True, True]))
write('coord', mol)


BTW: I saw that the 'mask' keyword is queried in write_turbomole() next to 
'indices' but FixAtoms.todict() never uses 'mask'. I removed the unnecessary 
code.

Best regards,
Ivan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6317 bytes
Desc: not available
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20170515/6bae64b6/attachment.p7s>


More information about the ase-users mailing list