Skip to content

Commit

Permalink
remove flag from __init__ in MolecularHamiltonianMPOModel
Browse files Browse the repository at this point in the history
  • Loading branch information
bartandrews committed Nov 8, 2024
1 parent 18ae3f3 commit d25d18d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/ffsim/tenpy/hamiltonians/molecular_hamiltonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ class MolecularHamiltonianMPOModel(CouplingMPOModel):
"""Molecular Hamiltonian."""

def __init__(self, params):
if hasattr(self, "flag"): # only call __init__ once
return
self.flag = True
CouplingMPOModel.__init__(self, params)

def init_sites(self, params):
Expand Down

0 comments on commit d25d18d

Please sign in to comment.