parameters: (self, value)
return_statement: return val
docstring: Calculate value for logarithmic slider
docstring_summary: Calculate value for logarithmic slider
docstring_tokens: Calculate value for logarithmic slider
function: def calc_log_val(self, value):
          """
          Calculate value for logarithmic slider
          """
  
          min_val = log_(self.prop_min)
  
          try:
              rangelen = math.log(self.prop_max) - min_val
          except ValueError as e:
              log.error("Rangelength error {}. {} - {} does not make sense".format(e, self.prop_max, self.prop_min))
              rangelen = 100
  
          val_val = log_(value)
  
          val = (self.log_slider_ticks / rangelen
                 * (val_val - min_val))
  
          return val
function_tokens: def calc_log_val ( self , value ) : min_val = log_ ( self . prop_min ) try : rangelen = math . log ( self . prop_max ) - min_val except ValueError as e : log . error ( "Rangelength error {}. {} - {} does not make sense" . format ( e , self . prop_max , self . prop_min ) ) rangelen = 100 val_val = log_ ( value ) val = ( self . log_slider_ticks / rangelen * ( val_val - min_val ) ) return val