3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-03 10:05:49 +01:00

[py3] set is now a builtin type

This commit is contained in:
Nils Wentzell 2020-04-08 15:57:03 -04:00
parent b1d9229e83
commit 392c94d4c3

View File

@ -29,7 +29,6 @@ from pytriqs.utility.comparison_tests import assert_arrays_are_close
from pytriqs.archive import * from pytriqs.archive import *
from .symmetry import * from .symmetry import *
from .block_structure import BlockStructure from .block_structure import BlockStructure
from sets import Set
from itertools import product from itertools import product
from warnings import warn from warnings import warn
from scipy import compress from scipy import compress
@ -793,7 +792,7 @@ class SumkDFT(object):
# Determine off-diagonal entries in upper triangular part of # Determine off-diagonal entries in upper triangular part of
# density matrix # density matrix
offdiag = Set([]) offdiag = set([])
for i in range(n_orb): for i in range(n_orb):
for j in range(i + 1, n_orb): for j in range(i + 1, n_orb):
if dmbool[i, j] or hlocbool[i, j]: if dmbool[i, j] or hlocbool[i, j]:
@ -980,7 +979,7 @@ class SumkDFT(object):
# Determine off-diagonal entries in upper triangular part of the # Determine off-diagonal entries in upper triangular part of the
# Green's function # Green's function
offdiag = Set([]) offdiag = set([])
for i in range(n_orb): for i in range(n_orb):
for j in range(i + 1, n_orb): for j in range(i + 1, n_orb):
if maxgf_bool[i, j]: if maxgf_bool[i, j]: