diff --git a/nion/swift/Inspector.py b/nion/swift/Inspector.py index 4c81339fe..2fbde0d61 100755 --- a/nion/swift/Inspector.py +++ b/nion/swift/Inspector.py @@ -2264,7 +2264,7 @@ def __get_calibration(self) -> Calibration.Calibration: index = self.__index calibrations = self.__display_item.displayed_datum_calibrations if self.__uniform: - unit_set = list(calibration.units if calibration.units else '' for calibration in calibrations) + unit_set = set(calibration.units if calibration.units else '' for calibration in calibrations) if len(unit_set) > 1: return Calibration.Calibration() dimension_count = len(calibrations)