gemseo / utils

ggobi_export module

GGOBI : interactive data visualization software

Export data to the XML file format needed by GGOBI

gemseo.utils.ggobi_export.prettify(elem)[source]

Return a pretty-printed XML string for the Element.

Parameters

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 an xml file to be read by ggobi.

Parameters
  • 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

None