amoghskulkarni / WebGME-MOCA

A domain-specific modeling language for running analyses on manufacturing process models
2 stars 0 forks source link

Use CSV Recorder from OpenMDAO to generate a CSV file of DoE results #17

Closed amoghskulkarni closed 6 years ago

amoghskulkarni commented 6 years ago

This will help the user to store the DoE results on the server and FileLink and FileLinks objects from IPython.display module can be used in the notebook to provide downloadable links of the same files.

Code snippet for the downloadable links -

# This works in a generated IPython notebook
from IPython.display import FileLink, FileLinks
#FileLink('testCSV.csv')
FileLinks('./out')

Using CsvRecorder from OpenMDAO stack should be easy enough according to the following example their docs - http://openmdao.readthedocs.io/en/1.7.0/srcdocs/packages/recorders/csv_recorder.html

amoghskulkarni commented 6 years ago

Other handy modules usable in IPython notebook which come with IPython stack - http://ipython.readthedocs.io/en/stable/api/generated/IPython.display.html

amoghskulkarni commented 6 years ago

213d6c89914cbd2527afbf490b0ce69e8a3a6a60 Every problem now generates a CSV file and the handle to download the generated file is given in the notebook. Still some management of the files is required, but this particular issue has been addressed.