Skip to content

Commit

Permalink
Merge pull request #453 from relf/upgrade-wop2
Browse files Browse the repository at this point in the history
Upgrade to wop 2.x API
  • Loading branch information
christophe-david committed Aug 30, 2022
2 parents f337737 + 84cd46e commit 54056e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ipopo = "^1.0.0"
ipywidgets = "^7.5.0"
ipysheet = ">=0.5.0, <1"
plotly = "^5.0.0"
wop = "^1.20.0"
wop = "^2.2.0"
lxml = "^4.6.5"
tomlkit = ">=0.5.3, <1"
"ruamel.yaml" = ">=0.15.78, <0.18"
Expand Down
5 changes: 3 additions & 2 deletions src/fastoad/openmdao/whatsopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import whatsopt.whatsopt_client as wop

from fastoad._utils.files import make_parent_dir
from fastoad import __version__ as fastoad_version

_LOGGER = logging.getLogger(__name__) # Logger for this module

Expand Down Expand Up @@ -45,9 +46,9 @@ def write_xdsm(
if not wop_server_url:
wop_server_url = wop.EXTRANET_SERVER_URL

wop_session = wop.WhatsOpt(url=wop_server_url, login=False)
wop_session = wop.WhatsOpt(url=wop_server_url)

xdsm = wop_session.push_mda(
problem, {"--xdsm": True, "--name": None, "--depth": depth, "--dry-run": dry_run}
)
wop.generate_xdsm_html(problem, xdsm=xdsm, outfilename=xdsm_file_path)
wop.generate_xdsm_html(f"FAST-OAD {fastoad_version}", xdsm=xdsm, outfilename=xdsm_file_path)

0 comments on commit 54056e9

Please sign in to comment.