Skip to content

Commit

Permalink
Merge pull request #141 from MichaelPesce/use-idaes-flowsheet-processor
Browse files Browse the repository at this point in the history
Update fsapi to idaes-flowsheet-processor api
  • Loading branch information
MichaelPesce authored Nov 26, 2024
2 parents 5af8e1e + 8c8d2f4 commit f101e72
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# package-local
from app.internal.settings import Deployment, AppSettings
from watertap.ui.fsapi import FlowsheetInterface
from idaes_flowsheet_processor.api import FlowsheetInterface
import idaes.logger as idaeslog

_log = idaeslog.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from watertap.ui.fsapi import FlowsheetInterface
from idaes_flowsheet_processor.api import FlowsheetInterface
from idaes.core.solvers import get_solver


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from watertap.ui.fsapi import FlowsheetInterface
from idaes_flowsheet_processor.api import FlowsheetInterface
from idaes.core.solvers import get_solver


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from app.internal.flowsheet_manager import FlowsheetManager, FlowsheetInfo
from app.internal.parameter_sweep import run_parameter_sweep
from app.internal.log_parser import parse_logs
from watertap.ui.fsapi import FlowsheetInterface, FlowsheetExport
from idaes_flowsheet_processor.api import FlowsheetInterface, FlowsheetExport
import idaes.logger as idaeslog

CURRENT = "current"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
from urllib.parse import quote

from watertap.ui.fsapi import FlowsheetExport
from idaes_flowsheet_processor.api import FlowsheetExport
from fastapi.responses import FileResponse

# add 'examples' to packages, *before* app starts
Expand All @@ -24,7 +24,7 @@ def client():

def pytest_generate_tests(metafunc):
if "flowsheet_id" in metafunc.fixturenames:
from watertap.ui.fsapi import FlowsheetInterface
from idaes_flowsheet_processor.api import FlowsheetInterface

module_names = list(FlowsheetInterface.from_installed_packages())
metafunc.parametrize(
Expand Down
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/FlowsheetTesting.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ describe('WaterTAP UI Testing', () => {

it('tests new flowsheet', () => {
let modelFile = "https://drive.google.com/uc?export=download&id=1XdjuWNpYT9teZxaF8TuwDz0XS2XyXKeT"
// let exportFile = "https://drive.google.com/uc?export=download&id=1-jWQmI4wO2OlyUi32fqobFEmPn3zm9Q9"
let exportFile = "https://drive.google.com/uc?export=download&id=1_KtDRLSQeyKoQ3rH-4kNuxpvuQVuhQCu"
let exportFile = "https://drive.google.com/uc?export=download&id=1-jWQmI4wO2OlyUi32fqobFEmPn3zm9Q9"
// let exportFile = "https://drive.google.com/uc?export=download&id=1_KtDRLSQeyKoQ3rH-4kNuxpvuQVuhQCu"
cy.load_flowsheets_list()
cy.screenshot('loaded flowsheet list page')

Expand Down

0 comments on commit f101e72

Please sign in to comment.