def _check_output_range(self, preset): """ Check output range. Cube LUT are float. Print a warning or raise an error """ output_range = preset[presets.OUT_RANGE] presets.check_range_is_float(output_range, self._get_range_message(output_range))
def _check_range(self, preset): """ Check output range. CSP LUT are float. Print a warning or raise an error """ for str_range in ['input_range', 'output_range']: arange = preset[str_range] presets.check_range_is_float( arange, self._get_range_message(str_range, arange))
def _check_range(self, preset): """ Check output range. CSP LUT are float. Print a warning or raise an error """ for str_range in ['input_range', 'output_range']: arange = preset[str_range] presets.check_range_is_float(arange, self._get_range_message(str_range, arange))