Skip to content

prommis/flowsheet-inspector

Repository files navigation

Flowsheet Inspector Extension

Development Setup

Prerequisites

  1. Python >= 3.12
  2. pip install idaes-connectivity
  3. pip install idaes-pse
  4. idaes get-extensions
  5. pip install git+https://github.com/prommis/flowsheet-inspector-lib.git

Linux: Additional Required Packages

If you are on a Linux machine, please make sure the following packages are installed:

Package Name Why
libgfortran5 Provides libgfortran.so.5, required by IDAES extensions
liblapack3 Provides liblapack.so.3, required by IDAES extensions
libblas3 Required by LAPACK (LAPACK depends on BLAS)

Database Issues

If there is a schema update in flowsheet-inspector-lib, you must delete the old reportdb.sqlite file in your dev environment to avoid errors.

The database file is located at:

OS Path
macOS ~/.idaes/reportdb.sqlite
Linux ~/.idaes/reportdb.sqlite
Windows %LOCALAPPDATA%\idaes\reportdb.sqlite (e.g. C:\Users\YourUserName\AppData\Local\idaes\reportdb.sqlite)

Starting the Local Dev Server

  1. Make sure you are using VS Code as your editor.
  2. Clone this repo locally.
  3. Make sure you are using Node.js v24.11.0.
  4. Run npm install in both the extension and webview_ui folders.
  5. In the extension folder, run npm run watch:build to enable live compilation.
  6. In the webview_ui folder, run npm run watch:build to enable live reload for React.
  7. Open extension/src/extension.ts, then press F5 to launch the extension in a new VS Code window. Select the "Run Extension" debug configuration.

Dev Server Architecture

  • extension/ – Contains the VS Code extension source files.
  • webview_ui/ – Contains the webview UI built with React.
    • React builds static files that the extension loads into the webview.
    • The React dev server allows developers to preview UI changes in the browser without reloading the extension.

Installing the Alpha Extension

Environment Setup

  1. Python >= 3.12
  2. pip install idaes-connectivity
  3. pip install idaes-pse
  4. idaes get-extensions
  5. pip install git+https://github.com/prommis/flowsheet-inspector-lib.git

Installation

  1. Go to the GitHub repo and download the .vsix file.
  2. Open VS Code and click the Extensions icon (four squares) in the sidebar.
  3. In the top-right corner of the Extensions panel, click the ... menu and select Install from VSIX....
  4. In the file dialog, select the .vsix file you downloaded.
  5. The PrOMMiS icon will now appear in your VS Code sidebar. Click it to open the extension panel.

About

Provide interface to inspect and visualize flowsheet results

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors