WhatsOpt command line memo
(updated: 12/07/2023, wop version : 2.5.0)
Log in/out to/from WhatOpt server
wop login < whatsopt server url>
Check WhatsOpt and wop versions once logged in
Get connection status and currently pulled analysis
List available analyses getting their id, name and creation date
2. Code generation from Analysis (pulling from WhatsOpt server)
Generate code from an analysis with id #42 (which becomes the "reference analysis")
Update code following a structure change in WhatOpt reference analysis
Update code following variable change in WhatOpt reference analysis
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
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
Export standalone XDSM page for an analysis in WhatsOpt
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
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
Building and publishing the package of the current analysis on the WhatsOpt server (a.k.a WopStore)
Fetching discipline implementations of the packaged analysis #42 within the current analysis code
Merging disciplines of the analysis #42 within the current analysis
Pulling disciplines of the analysis #42 within the current analysis (equivalent to merge + fetch)
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