forked from watertap-org/watertap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build options to UI api; add example to nf_ui.py (watertap-org#1152)
* add build options to fsapi; update ui exports to include build options; add option for nf flowsheet (with bypass option); remove nf with bypass flowsheet from setup.py * add build options to fsapi; update ui exports to include build options; add option for nf flowsheet (with bypass option); remove nf with bypass flowsheet from setup.py * remove changes made to nf.py and nf_with_bypass.py * revert changes to nf.py and nf_with_bypass.py * revert changes to nf.py * add validator for model option values * add build_options as an argument for build function - eliminates need for multiple build functions * update doc for how to use ui api * remove some commented out stuff * add build_options parameter to ui export build functions * added second build option for polarization type * updated formatting for black check * update fsapi tests * add build options parameter to bsm2_ui; add init file to bsm2_ui directory * un-comment out nf_with_bypass entry point * remove unused function * updated flowsheet_interface test to increase code cov * update formatting for black check * remove parentheses around build options in test * replace .value with ['value'] * add **kwargs to build and export_variables functions * add build options parameter, **kwargs to new ro flowshee UI exportt * remove nf_with_bypass from setup * add nf_with_bypass back * [value] -> .value * add add_objective to build function * update test to use ModelOption object * fix formatting for black check * only update values, bounds, fixed if it has changed; use the set_functions for these actions * update formatting for black check * change if statement to check for attribute, bounds * remove unused imports
- Loading branch information
1 parent
1d22d6f
commit b00f683
Showing
23 changed files
with
451 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.