exa.core.model_selection_fitter.utils.create_unit_string

exa.core.model_selection_fitter.utils.create_unit_string#

create_unit_string(data_array, enclosure='(')#

Creates a string that contains the units for that coordinates in the data_array.

Parameters:
  • data_array (DataArray) – Array with all the data and the coordinate information.

  • enclosure (str) – enclosing bracket

Return type:

tuple[float, str]

Returns: a tuple where the first element is the scaling of the data (float) and the second element is the SI unit with a prefix (str).