@@ -2971,14 +2971,14 @@ def compute_ensemble(self, calculator, compute_stress = True, stress_numerical =
29712971 print ("BEFORE COMPUTING:" , self .all_properties )
29722972 cluster .compute_ensemble (computing_ensemble , calculator , compute_stress )
29732973
2974- print ('ENSEMBLE ALL PROPERTIES:' , self .all_properties )
29752974 else :
29762975 computing_ensemble .get_energy_forces (calculator , compute_stress , stress_numerical , verbose = verbose )
29772976
29782977 if should_i_merge :
29792978 # Remove the noncomputed ensemble from here, and merge
29802979 self .merge (computing_ensemble )
29812980
2981+ print ('ENSEMBLE ALL PROPERTIES:' , self .all_properties )
29822982
29832983 def merge (self , other ):
29842984 """
@@ -3004,6 +3004,7 @@ def merge(self, other):
30043004
30053005 self .stress_computed = np .concatenate ( (self .stress_computed , other .stress_computed ))
30063006 self .force_computed = np .concatenate ( (self .force_computed , other .force_computed ))
3007+ self .all_properties += other .all_properties
30073008
30083009
30093010 self .sscha_forces = np .concatenate ( (self .sscha_forces , other .sscha_forces ), axis = 0 )
@@ -3052,6 +3053,8 @@ def split(self, split_mask):
30523053
30533054 ens .update_weights (self .current_dyn , self .current_T )
30543055
3056+ ens .all_properties = [self .all_properties [x ] for x in np .arange (len (split_mask ))[split_mask ]]
3057+
30553058 return ens
30563059
30573060
@@ -3074,7 +3077,9 @@ def remove_noncomputed(self):
30743077 self .xats = self .xats [good_mask , :, :]
30753078 self .u_disps = self .u_disps [good_mask , :]
30763079
3077- self .structures = [self .structures [x ] for x in np .arange (len (good_mask ))[good_mask ]]
3080+ self .structures = [self .structures [x ] for x in np .arange (len (good_mask ))[good_mask ]]
3081+ self .all_properties = [self .all_properties [x ] for x in np .arange (len (good_mask ))[good_mask ]]
3082+
30783083
30793084 self .rho = self .rho [good_mask ]
30803085
0 commit comments