File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -708,9 +708,9 @@ def load_thermo_covariances_from_groups(self):
708708 # --------------------------------- add group-group correlations ---------------------------------
709709 # only consider groups actually in the model to keep this a reasonable size
710710 groups_in_model = []
711- if cov_group_tree_name == 'adsorptionPt111' and 'ADS' in self .all_thermo_sources :
711+ if cov_group_tree_name == 'adsorptionPt111' and 'ADS' in self .all_thermo_sources and cov_group_tree_name in self . all_thermo_sources [ 'ADS' ] :
712712 groups_in_model = self .all_thermo_sources ['ADS' ][cov_group_tree_name ]
713- else :
713+ elif cov_group_tree_name in self . all_thermo_sources [ 'GAV' ] :
714714 groups_in_model = self .all_thermo_sources ['GAV' ][cov_group_tree_name ]
715715 group_items_in_model = [x .item for x in groups_in_model ]
716716 group_labels_in_model = [x .label for x in groups_in_model ]
You can’t perform that action at this time.
0 commit comments