From 65f189da833f02a997b1e4629d2bf591e3d4137b Mon Sep 17 00:00:00 2001 From: Rui Zhang <rui.zhang@cern.ch> Date: Fri, 24 Jun 2022 21:58:04 +0200 Subject: [PATCH] Minor fix --- quickstats/components/workspaces/xml_ws_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstats/components/workspaces/xml_ws_builder.py b/quickstats/components/workspaces/xml_ws_builder.py index b32d2c99..b784bd5a 100644 --- a/quickstats/components/workspaces/xml_ws_builder.py +++ b/quickstats/components/workspaces/xml_ws_builder.py @@ -1655,7 +1655,7 @@ class XMLWSBuilder(XMLWSBase): h = self.get_histogram(filename, histname) if rebin > 0: h.Rebin(rebin) - obs = w.var(obs_name) + obs = ws.var(obs_name) if not obs: raise RuntimeError("observable not initialized") h_data = ROOT.RooDataHist("hdata", "hdata", obs, h) -- GitLab