From 8bd5abea3dfaec2896fd479f033d7d8ed1d3d7d4 Mon Sep 17 00:00:00 2001 From: Andreas Eknes Lie Date: Mon, 29 Apr 2024 17:03:18 +0200 Subject: [PATCH] Avoid using non-existant variable --- .../_volumetric_analysis/controllers/tornado_controllers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webviz_subsurface/plugins/_volumetric_analysis/controllers/tornado_controllers.py b/webviz_subsurface/plugins/_volumetric_analysis/controllers/tornado_controllers.py index 5263616d8..4d48939d6 100644 --- a/webviz_subsurface/plugins/_volumetric_analysis/controllers/tornado_controllers.py +++ b/webviz_subsurface/plugins/_volumetric_analysis/controllers/tornado_controllers.py @@ -73,6 +73,7 @@ def _update_tornado_pages( if page_selected == "torn_bulk_inplace" else [selections["Response"]] ) + realplot = None for response in responses: if not (response == "BULK" and page_selected == "torn_bulk_inplace"): if selections["Reference"] not in selections["Sensitivities"]: @@ -132,7 +133,7 @@ def _update_tornado_pages( height="39vh", table_id={"table_id": f"{page_selected}-torntable"}, ) - elif selections["bottom_viz"] == "realplot" and figures: + elif realplot and selections["bottom_viz"] == "realplot" and figures: bottom_display = [ wcc.Graph( config={"displayModeBar": False},