def generate_value?(lm, hm)
      !lm.nil? && lm.try(:value) == hm.try(:value) && lm.try(:unit).nil? && hm.try(:unit).nil?
    end
def generate_value?(lm, hm)
      !lm.nil? && lm.try(:value) == hm.try(:value) && lm.try(:unit).nil? && hm.try(:unit).nil?
    end
Check if the value for the range should actually produce a single value instead of a range (if low and high are
 the same)