xbudget.queryΒΆ

Query the variables an xbudget run materialized.

The evaluator (xbudget.evaluate) writes one variable per operation into the dataset and names it by its term path. This module answers the questions a user actually has afterwards: what is this term called?, what went into it?, and what are the top-level terms of this budget? β€” without them needing to know the naming rule or parse flat variable names.

A BudgetQuery is built from the same two things the run used β€” the data and the recipe β€” so it also works on a dataset reopened from disk long after the run.

Classes

BudgetQuery(data, recipe)

Look up the variables an xbudget run produced.