From 392c94d4c304ac818c0baeb5f0645c802eee7082 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Wed, 8 Apr 2020 15:57:03 -0400 Subject: [PATCH] [py3] set is now a builtin type --- python/sumk_dft.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/sumk_dft.py b/python/sumk_dft.py index 715fe2b1..025b302e 100644 --- a/python/sumk_dft.py +++ b/python/sumk_dft.py @@ -29,7 +29,6 @@ from pytriqs.utility.comparison_tests import assert_arrays_are_close from pytriqs.archive import * from .symmetry import * from .block_structure import BlockStructure -from sets import Set from itertools import product from warnings import warn from scipy import compress @@ -793,7 +792,7 @@ class SumkDFT(object): # Determine off-diagonal entries in upper triangular part of # density matrix - offdiag = Set([]) + offdiag = set([]) for i in range(n_orb): for j in range(i + 1, n_orb): 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 # Green's function - offdiag = Set([]) + offdiag = set([]) for i in range(n_orb): for j in range(i + 1, n_orb): if maxgf_bool[i, j]: