gemseo / utils

ggobi_export module

GGOBI : interactive data visualization software

Export data to the XML file format needed by GGOBI

Functions:

prettify(elem)

Return a pretty-printed XML string for the Element.

save_data_arrays_to_xml(variables_names, ...)

Saves an optimization history in numpy format to an xml file to be read 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]

Saves an optimization history in numpy format to an xml file to be read by ggobi.

Parameters
  • variables_names (list(str)) – list of the variables names

  • values_array – the variables history (nb variables,nb iterations)

  • file_path (str) –

    the file path of the generated xml file

    By default it is set to opt_hist.xml.