Skip to content

Commit

Permalink
Fixes chfkile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
obackhouse committed Oct 28, 2020
1 parent c7f9d76 commit de6a7b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/agf2/04-restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
mf.__dict__.update(agf2.chkfile.load('agf2.chk', 'scf'))

# Restore the AGF2 calculation
dic = agf2.chkfile.load_agf2('agf2.chk')
gf2a = agf2.AGF2(mf)
gf2a.__dict__.update(agf2.chkfile.load_agf2('agf2.chk')[1])
gf2a.max_cycle = 50
Expand Down
2 changes: 0 additions & 2 deletions pyscf/agf2/chkfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def load_agf2(chkfile):
if 'gf' in dic:
gf = dic['gf']
dic['gf'] = GreensFunction(gf['energy'], gf['coupling'], chempot=gf['chempot'])
del(dic['gf'])
elif 'gfa' in dic:
gfa, gfb = dic['gfa'], dic['gfb']
dic['gf'] = (GreensFunction(gfa['energy'], gfa['coupling'], chempot=gfa['chempot']),
Expand All @@ -93,7 +92,6 @@ def load_agf2(chkfile):
if 'se' in dic:
se = dic['se']
dic['se'] = SelfEnergy(se['energy'], se['coupling'], chempot=se['chempot'])
del(dic['se'])
elif 'sea' in dic:
sea, seb = dic['sea'], dic['seb']
dic['se'] = (SelfEnergy(sea['energy'], sea['coupling'], chempot=sea['chempot']),
Expand Down

0 comments on commit de6a7b5

Please sign in to comment.