Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dpdata/gaussian/gjf.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def make_gaussian_input(
cell = sys_data['cells'][0]
for ii in range(3):
# use TV as atomic symbol, see https://gaussian.com/pbc/
buff.append('TV %f %f %f' % (symbol, *cell[ii]))
buff.append('TV %f %f %f' % (*cell[ii],))
if basis_set is not None:
# custom basis set
buff.extend(['', basis_set, ''])
Expand Down
14 changes: 14 additions & 0 deletions tests/test_gaussian_gjf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import unittest
import os

from context import dpdata


class TestGaussianGJF(unittest.TestCase):
def setUp (self) :
self.system = dpdata.LabeledSystem('poscars/OUTCAR.h2o.md',
fmt = 'vasp/outcar')

def test_dump_gaussian_gjf(self):
self.system.to_gaussian_gjf('tmp.gjf', keywords="force b3lyp/6-31g*")
os.remove('tmp.gjf')