gemseo.utils.ggobi_export module#

Export data to the XML file format needed by GGOBI.

prettify(elem)[source]#

Return a pretty-printed XML string for the Element.

Parameters:

elem -- The xml element.

save_data_arrays_to_xml(variable_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.

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