I have a request for a new feature: being able to export the metamodel created in Persalys as a Pickle or OTStudy, for further use in Python.
This is currently possible by “hacking” Persalys, but a dedicated button in the GUI would enable every user to do so.
It would be very handy to re-use the metamodel for other purposes, or personalize the analysis or the graphs.
#!/usr/bin/env python
import openturns as ot
import os
metamodel = ot.Function()
study = ot.Study()
dirname = os.path.dirname(__file__)
fn = os.path.join(dirname, "metamodele_0.xml")
study.setStorageManager(ot.XMLStorageManager(fn))
study.load()
study.fillObject("metamodel", metamodel)
Then the metamodel can be used outside from Persalys. Notice that the file is a plain ot.Study, not a Pickle file as you required. I hope that this still provides the feature you requested.
Regards,
Michaël