Skip to content

Latest commit

 

History

History
168 lines (126 loc) · 3.24 KB

wop_memo.md

File metadata and controls

168 lines (126 loc) · 3.24 KB

WhatsOpt command line memo

(updated: 12/07/2023, wop version : 2.5.0)

1. Basics

wop version

wop --version

Log in/out to/from WhatOpt server

wop login <whatsopt server url>
wop logout

Check WhatsOpt and wop versions once logged in

wop version

Get connection status and currently pulled analysis

wop status

List available analyses getting their id, name and creation date

wop list

2. Code generation from Analysis (pulling from WhatsOpt server)

Generate code from an analysis with id #42 (which becomes the "reference analysis")

wop pull 42

Update code following a structure change in WhatOpt reference analysis

wop update

Update code following variable change in WhatOpt reference analysis

wop update --run-ops

Change reference analysis from which the code is updated to use analysis with id #43

wop update --analysis-id 43

3. Analysis creation from code (pushing to WhatsOpt server)

Import an analysis used from an OpenMDAO problem used in analysis.py

wop push program.py

Import an OpenMDAO component MyComponentClass in component.py

wop push -c MyComponentClass component.py

Copy and get ownership of analysis named mda with id #42

wop pull 42
wop push mda.py  # -> create new analysis 43
wop update --analysis-id 43

4. Export/Import

Export standalone XDSM page for an analysis in WhatsOpt

wop show 

Export standalone XDSM page from any OpenMDAO problem

wop show -f openmdao_problem.py

Export analysis #42 to json format in mda.json

wop pull --json 42 > mda.json

Import analysis #42 from json format

wop push --json mda.json

Export project #7 to json format in mda.json

wop pull --json -p 7 > project.json

Import project #7 from json format

wop push --json project.json

5. Packaging (wop 2.5.0+)

Following commands expect code being pulled using package mode which is the default in wop >= 2.5.0

  • wop < 2.5.0 : wop pull --package 42
  • wop >= 2.5.0: wop pull 42

Building the package of the current analysis

wop build

Building and publishing the package of the current analysis on the WhatsOpt server (a.k.a WopStore)

wop publish

Fetching discipline implementations of the packaged analysis #42 within the current analysis code

wop fetch 42

Merging disciplines of the analysis #42 within the current analysis

wop merge 42

Pulling disciplines of the analysis #42 within the current analysis (equivalent to merge + fetch)

wop pull 42

6. Post-processing results

Just printing tables of results

wop upload -n <analysis>_doe.sqlite
wop upload -n <analysis>_mdo.sqlite

Plotting results on WhatsOpt server

wop upload <analysis>_doe.sqlite
wop upload <analysis>_mdo.sqlite

Convert analysis sqlite file to csv file

wop convert analysis_doe.sqlite

Creating fake analysis from external csv data (useful to plot the data with WhatsOpt)

wop push --outvar-count <nb of outputs> data.csv