From ce3458bf6224e17d1ccde48e6f3450d3ccb4d7d0 Mon Sep 17 00:00:00 2001 From: Dan Gunter Date: Thu, 2 Nov 2023 10:45:02 -0700 Subject: [PATCH 1/5] outputs --- idaes/core/base/flowsheet_model.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/idaes/core/base/flowsheet_model.py b/idaes/core/base/flowsheet_model.py index d0775ac2b7..f8e92c104b 100644 --- a/idaes/core/base/flowsheet_model.py +++ b/idaes/core/base/flowsheet_model.py @@ -74,10 +74,7 @@ def __init__(self): self.visualize = self._visualize_null self.installed = False else: - # 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 - + import idaes_ui self.visualize = idaes_ui.fv.visualize self.installed = True From 1ff8520abc01c6a51c01f80c9aa83f2e6febec19 Mon Sep 17 00:00:00 2001 From: Dan Gunter Date: Thu, 4 Apr 2024 11:18:55 -0700 Subject: [PATCH 2/5] fix hyperlink --- docs/explanations/components/ui/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/explanations/components/ui/index.rst b/docs/explanations/components/ui/index.rst index 36a62674c8..e4c27e17e4 100644 --- a/docs/explanations/components/ui/index.rst +++ b/docs/explanations/components/ui/index.rst @@ -4,7 +4,7 @@ User Interfaces There are several types of user interfaces in IDAES. To learn more about them, follow the links below. -* Graphical user interfaces: see `Flowsheet Visualizer `_ +* Graphical user interfaces: see `Flowsheet Visualizer `_ * `Jupyter Notebooks `_: see `IDAES Examples `_ * Python Application Programming Interfaces (APIs): see :ref:`API Reference` From 132ebffdc97bafbc2049edb2af7c3fd63c30f84f Mon Sep 17 00:00:00 2001 From: Dan Gunter Date: Thu, 4 Apr 2024 11:25:43 -0700 Subject: [PATCH 3/5] put this back --- idaes/core/base/flowsheet_model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idaes/core/base/flowsheet_model.py b/idaes/core/base/flowsheet_model.py index f8e92c104b..8a51ebd238 100644 --- a/idaes/core/base/flowsheet_model.py +++ b/idaes/core/base/flowsheet_model.py @@ -74,7 +74,9 @@ 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 From 90f7f0bb2ddb5e9bf46b770b487a313f057a2cb8 Mon Sep 17 00:00:00 2001 From: Dan Gunter Date: Thu, 4 Apr 2024 11:26:25 -0700 Subject: [PATCH 4/5] put this back2 --- idaes/core/base/flowsheet_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/idaes/core/base/flowsheet_model.py b/idaes/core/base/flowsheet_model.py index 8a51ebd238..d0775ac2b7 100644 --- a/idaes/core/base/flowsheet_model.py +++ b/idaes/core/base/flowsheet_model.py @@ -77,6 +77,7 @@ def __init__(self): # 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 From b93e03de5091dd87ec63f4105d19456de20a122e Mon Sep 17 00:00:00 2001 From: Dan Gunter Date: Thu, 4 Apr 2024 11:57:59 -0700 Subject: [PATCH 5/5] replace with simple hyperlink --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 52bc8ccad8..e71f019a40 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -67,7 +67,7 @@ Contents | :doc:`Logging Processing & Outputs ` | :doc:`Developing for IDAES ` | :doc:`Grid integration application ` - | :external+ui:doc:`Flowsheet Visualizer ` + | `Flowsheet Visualizer `_ .. toctree:: :hidden: