aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/loader/qpi.py
diff options
context:
space:
mode:
Diffstat (limited to 'qtip/loader/qpi.py')
-rw-r--r--qtip/loader/qpi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtip/loader/qpi.py b/qtip/loader/qpi.py
index 48f52e84..294fd2ff 100644
--- a/qtip/loader/qpi.py
+++ b/qtip/loader/qpi.py
@@ -24,7 +24,7 @@ class QPISpec(YamlFileLoader):
def __init__(self, name, paths=None):
super(QPISpec, self).__init__(name, paths=paths)
content = self.content
- self.formula = Formula(content[SpecProp.FORMULA])
+ self.formula = Formula(content.get(SpecProp.FORMULA, FormulaName.ARITHMETIC_MEAN))
self.sections = [Section(record, paths=paths)
for record in content[SpecProp.SECTIONS]]