Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add UI return, then visualize() can return now #1466

Merged
merged 6 commits into from
Aug 28, 2024

Conversation

CopyDemon
Copy link
Contributor

Fixes

Add return to UI.visualize() then user can use visualize() returned value and functions

Summary/Motivation:

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

…I code, this way has no need to up date PSE when want to update return items in UI
@CopyDemon CopyDemon requested review from dangunter and removed request for andrewlee94 and dallan-keylogic August 8, 2024 18:19
@ksbeattie ksbeattie added the Priority:Normal Normal Priority Issue or PR label Aug 8, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.36%. Comparing base (2b41748) to head (10ead5b).
Report is 1 commits behind head on main.

Files Patch % Lines
idaes/core/base/flowsheet_model.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1466       /-   ##
==========================================
- Coverage   76.37%   76.36%   -0.01%     
==========================================
  Files         393      393              
  Lines       65085    65086        1     
  Branches    14426    14426              
==========================================
- Hits        49708    49705       -3     
- Misses      12815    12820        5     
  Partials     2562     2561       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@lbianchi-lbl lbianchi-lbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good apart from these minor changes.

idaes/core/base/flowsheet_model.py Outdated Show resolved Hide resolved
idaes/core/base/flowsheet_model.py Outdated Show resolved Hide resolved
CopyDemon and others added 2 commits August 14, 2024 10:59
update return to snake_case

Co-authored-by: Ludovico Bianchi <[email protected]>
@lbianchi-lbl
Copy link
Contributor

This is how this looks in the Sphinx docs:

image

Copy link
Contributor

@lbianchi-lbl lbianchi-lbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more minor issue with the Sphinx rendering.

idaes/core/base/flowsheet_model.py Outdated Show resolved Hide resolved
…lt:` prefix. This prevents Sphinx from incorrectly adding an extra "Return type" field in the documentation.

Co-authored-by: Ludovico Bianchi <[email protected]>
@lbianchi-lbl lbianchi-lbl self-requested a review August 24, 2024 00:05
@lbianchi-lbl lbianchi-lbl added the CI:run-integration triggers_workflow: Integration label Aug 24, 2024
@idaes-build idaes-build removed the CI:run-integration triggers_workflow: Integration label Aug 24, 2024
Copy link
Member

@dangunter dangunter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but a test would be nice. Will add another issue

@dangunter dangunter merged commit 2a587ab into IDAES:main Aug 28, 2024
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Normal Normal Priority Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants