def is_in_range(self, values, unit=None, raise_exception=True):
self._is_numeric(values)<EOL>if unit is None or unit == self.units[<NUM_LIT:0>]:<EOL><INDENT>minimum = self.min<EOL>maximum = self.max<EOL><DEDENT>else:<EOL><INDENT>namespace = {'<STR_LIT>': self}<EOL>self.is_unit_acceptable(unit, True)<EOL>min_statement = "<STR_LIT>".format(<EOL>self._clean(self.units[<NUM_LIT:0>]), self._clean(unit))<EOL>max_statement = "<STR_LIT>".format(<EOL>self._clean(self.units[<NUM_LIT:0>]), self._clean(unit))<EOL>minimum = eval(min_statement, namespace)<EOL>maximum = eval(max_statement, namespace)<EOL><DEDENT>for value in values:<EOL><INDENT>if value < minimum or value > maximum:<EOL><INDENT>if not raise_exception:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'.format(<EOL>self.__class__.__name__, self.min, self.max, value<EOL>)<EOL>)<EOL><DEDENT><DEDENT><DEDENT>return True<EOL>
Check if a list of values is within physically/mathematically possible range.

        Args:
            values: A list of values.
            unit: The unit of the values.  If not specified, the default metric
                unit will be assumed.
            raise_exception: Set to True to raise an exception if not in range.