get_best_unit

pyR2D2.util.get_best_unit(size, unit_multipliers)[source]

Get the best unit for displaying the size.

Parameters:
  • size (int) – size of the file

  • unit_multipliers (dict) – dictionary of unit multipliers