exa.core.plotting.qpu_table.nice_print

Contents

exa.core.plotting.qpu_table.nice_print#

nice_print(value, decimals_to_print=3)#

Scales every value to nearest power of 10, even if units are not specified. Also works on arrays by iterating over individual values.

Parameters:
  • value (float | ndarray) – array or float value from observation.

  • decimals_to_print (int) – no of digits in decimals places to print.

Returns:

string of value rounded to nearest power of 10, with specified decimal places.

Return type:

str