Commit 3d1d744e authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Log selected index definition

parent 2d14b7f6
......@@ -344,17 +344,23 @@ class IndexCatalog:
return PeriodSpecification(selected_period, period_metadata)
indices = []
for index in requested_indices:
definition = self.get_index_definition(index)
for index_name in requested_indices:
definition = self.get_index_definition(index_name)
period_spec = select_period(definition.period)
index_function = build_index_function(definition.index_function)
except TypeError:
f"Could not build index function for index "
f"{index} from definition {definition}"
f"{index_name} from definition {definition}"
f"Trying to build index <{index_name}> "
f"with period <{period_spec.type}"
f"({p if (p := period_spec.parameters) is not None else ''})> "
f"from definition in <{definition.source}>"
index = Index(index_function, definition, period_spec)
return indices
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment