Skip to content

Commit 3a4463e

Browse files
committed
Small PySCF Manager bugs
1 parent c55dbd2 commit 3a4463e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyscfmanager.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from manager_tools import resolve_status, update_attributes
2-
from autopyscf import PySCFReader
2+
from autopyscf import PySCFReader,dm_from_chkfile
33
from autorunner import PySCFRunnerPBS
44
import os
5+
import shutil as sh
56
import pickle as pkl
67
import pyscf2qwalk
78
from autopaths import paths
@@ -116,7 +117,7 @@ def nextstep(self):
116117
sh.copy(self.outfile,"%d.%s"%(self.restarts,self.outfile))
117118
sh.copy(self.chkfile,"%d.%s"%(self.restarts,self.chkfile))
118119
if os.path.exists(self.chkfile):
119-
self.writer.dm_generator=PySCF.dm_from_chkfile("%d.%s"%(self.restarts,self.chkfile))
120+
self.writer.dm_generator=dm_from_chkfile("%d.%s"%(self.restarts,self.chkfile))
120121
self.writer.pyscf_input(self.driverfn,self.chkfile)
121122
self.runner.add_task("/usr/bin/python3 %s > %s"%(self.driverfn,self.outfile))
122123
self.restarts+=1

0 commit comments

Comments
 (0)