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

Track changes in watertap before v1.0 #123

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion backend/app/internal/parameter_sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from fastapi import HTTPException
import numpy as np
from watertap.tools.parameter_sweep import LinearSample, ParameterSweep, parameter_sweep
import watertap.examples.flowsheets.case_studies.wastewater_resource_recovery.amo_1575_magprex.magprex as magprex
from importlib import import_module
import idaes.logger as idaeslog
from pyomo.environ import (
Expand Down
4 changes: 2 additions & 2 deletions backend/tests/app/routers/test_flowsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_get_all(client):
data = body["flowsheet_list"]
for item in data:
# validates the result object, too
info = fm.FlowsheetInfo.parse_obj(item)
info = fm.FlowsheetInfo.model_validate(item)
assert info.name != ""


Expand All @@ -93,7 +93,7 @@ def test_get_config(client, flowsheet_id):
assert response.status_code == 200, body
# make sure it's a non-empty valid response
assert body != {}
fs_exp = FlowsheetExport.parse_obj(body)
fs_exp = FlowsheetExport.model_validate(body)
assert fs_exp.name != ""

# this time build the model, make sure there is content
Expand Down