From 7a19de582584cf293f7e6eaaf9a0303319220509 Mon Sep 17 00:00:00 2001 From: Dan Gunter Date: Fri, 25 Oct 2024 06:34:38 -0700 Subject: [PATCH] return to form --- idaes/core/base/flowsheet_model.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/idaes/core/base/flowsheet_model.py b/idaes/core/base/flowsheet_model.py index 7b9fbf0aa9..b9ff3a63ca 100644 --- a/idaes/core/base/flowsheet_model.py +++ b/idaes/core/base/flowsheet_model.py @@ -74,7 +74,10 @@ def __init__(self): self.visualize = self._visualize_null self.installed = False else: - import idaes_ui + # FIXME the explicit submodule import is needed because the idaes_ui doesn't import its fv submodule + # otherwise, you get "AttributeError: module 'idaes_ui' has no 'fv' attribute" + import idaes_ui.fv + self.visualize = idaes_ui.fv.visualize self.installed = True