From 1e4b103ba72fe010611338a6abad5c0469657e80 Mon Sep 17 00:00:00 2001 From: Priyanka Seth Date: Thu, 13 Nov 2014 17:02:23 +0100 Subject: [PATCH] Fix in reading in sumk_lda --- python/sumk_lda.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/sumk_lda.py b/python/sumk_lda.py index aacc0628..ffa0f213 100644 --- a/python/sumk_lda.py +++ b/python/sumk_lda.py @@ -153,7 +153,7 @@ class SumkLDA: else: value_read['%s'%it] = False else: - mpi.report("Loading failed: No %s subgroup in HDF5!"%subgrp) + if (len(things_to_read) != 0): mpi.report("Loading failed: No %s subgroup in HDF5!"%subgrp) subgroup_present = False value_read = False @@ -415,7 +415,6 @@ class SumkLDA: a_list = [a for a,al in self.gf_struct_corr[self.invshellmap[ish]] ] for a in a_list: - dm = dens_mat[ish][a] dmbool = (abs(dm) > threshold) # gives an index list of entries larger that threshold