diff --git a/likelihood/sacc/sacc_like.py b/likelihood/sacc/sacc_like.py index affaf639..a45cb396 100644 --- a/likelihood/sacc/sacc_like.py +++ b/likelihood/sacc/sacc_like.py @@ -123,7 +123,7 @@ def build_data(self): self.sections_for_names = {} for name in final_names: if self.options.has_value(f"{name}_section"): - section = options[f"{name}_section"] + section = self.options[f"{name}_section"] elif name in default_sections: section = default_sections[name] else: