gemseo / utils

ggobi_export module

GGOBI : interactive data visualization software

Export data to the XML file format needed by GGOBI


Return a pretty-printed XML string for the Element.


elem – The xml element.

gemseo.utils.ggobi_export.save_data_arrays_to_xml(variables_names, values_array, file_path='opt_hist.xml')[source]

Save an optimization history in NumPy format to a xml file to be read by ggobi.

  • variables_names (Sequence[str]) – The names of the variables.

  • values_array (ndarray) – The history of the variables, of the form (number of variables, number of iterations).

  • file_path (str | Path) –

    The file path of the generated xml file.

    By default it is set to “opt_hist.xml”.

Return type: