onodip / openmdao-xdsm Goto Github PK
View Code? Open in Web Editor NEWXDSM viewer plugin for OpenMDAO
License: Apache License 2.0
XDSM viewer plugin for OpenMDAO
License: Apache License 2.0
Hello,
Due to an update to the Auto-IVC (IndepVarComp) functionality in OpenMDAO, there is a new development which will be very useful.
The declaration of independent variables is no longer mandatory in OpenMDAO. Without this declaration, it is not possible at the moment to generate the xDSM.
The scripts available in the OpenMDAO help (http://openmdao.org/twodocs/versions/latest/other/auto_ivc_api_translation.html?highlight=ivc) are a very good test.
In OpenMDAO-XDSM, the following error is reported:
Traceback (most recent call last):
File "C:\Users\vambert\workspace\openMDAO_test\prab2.py", line 34, in
write_xdsm(prob, filename='toto', out_format='html', include_solver=True, show_browser=True, quiet=False, output_side='left', legend=True, class_names=False, include_indepvarcomps=False)#, show_parallel=False)
File "C:\Users\vambert\AppData\Local\Continuum\anaconda2\envs\openmdao\lib\site-packages\omxdsm\xdsm_writer.py", line 1272, in write_xdsm
include_indepvarcomps=include_indepvarcomps, **kwargs)
File "C:\Users\vambert\AppData\Local\Continuum\anaconda2\envs\openmdao\lib\site-packages\omxdsm\xdsm_writer.py", line 1570, in _write_xdsm
(comps_dct[src]['is_parallel'] or comps_dct[tgt]['is_parallel'])
KeyError: '@auto@ivc'
Thanks
Best regards
Vincent
.tex file halts when the .tikz file contains an unescaped underscore in a component name. E.g. in the Sellar example in the examples folder, the new .tikz contains the name _AutoIVC (when re-generated, current .tikz file is outdated) in line 57. Suggest ensuring underscores are always escaped.
I did install the pdflatex package, but still get the feedback 'Can't find pdflatex, so a pdf can't be generated.'
I've also tried to import pdflatex in the same file, which didn't help at all.
shutil.which('pdflatex') indeed return None on my computer, but I'm not sure how should I fix it.
This package calls the following:
from openmdao.visualization.html_utils import (
write_div,
head_and_body,
write_script,
write_style,
)
but only returns errors as openmdao.visualization.html_utils doesn't seem to exist. Cannot get the tests to work with this either.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.