old_contents: """Kraken - objects.Attributes.FloatAttribute module.
  
  Classes:
  FloatAttribute - Base Attribute.
  
  """
  
  from number_attribute import NumberAttribute
  from kraken.core.kraken_system import ks
  
  class FloatAttribute(NumberAttribute):
      """Float Attribute. Implemented value type checking and limiting."""
  
      def __init__(self, name, value=0.0, minValue=None, maxValue=None):
          super(FloatAttribute, self).__init__(name, value)
  
          if minValue is None:
              if value < 0.0:
                  self.setMin(value)
              else:
                  self.setMin(0.0)
  
          if maxValue is None:
              if value == 0.0:
                  self.setMax(1.0)
              else:
                  self.setMax(value * 3.0)
  
          assert type(self.value) in (int, float), "Value is not of type 'int' or 'float'."
  
  
      def setValue(self, value):
          """Sets the value of the attribute.
  
          Arguments:
          value -- Value to set the attribute to.
  
          Return:
          True if successful.
  
          """
  
          if type(value) not in (int, float):
              raise TypeError("Value is not of type 'int' or 'float'.")
  
          if value < self.min:
              raise ValueError("Value is less than attribute minimum.")
          elif value > self.max:
              raise ValueError("Value is greater than attribute maximum.")
  
          super(FloatAttribute, self).setValue(value)
  
          return True
  
      def getRTVal(self):
          """Returns and RTVal object for this attribute.
  
          Return:
          RTVal
  
          """
          return ks.rtVal('Scalar', self.value)
  
  
          
  
new_contents: """Kraken - objects.Attributes.FloatAttribute module.
  
  Classes:
  FloatAttribute - Base Attribute.
  
  """
  
  from number_attribute import NumberAttribute
  from kraken.core.kraken_system import ks
  
  class FloatAttribute(NumberAttribute):
      """Float Attribute. Implemented value type checking and limiting."""
  
      def __init__(self, name, value=0.0, minValue=None, maxValue=None):
          super(FloatAttribute, self).__init__(name, value, minValue=minValue, maxValue=maxValue)
  
          if minValue is None:
              if value < 0.0:
                  self.setMin(value)
              else:
                  self.setMin(0.0)
  
          if maxValue is None:
              if value == 0.0:
                  self.setMax(1.0)
              else:
                  self.setMax(value * 3.0)
  
          assert type(self.value) in (int, float), "Value is not of type 'int' or 'float'."
  
  
      def setValue(self, value):
          """Sets the value of the attribute.
  
          Arguments:
          value -- Value to set the attribute to.
  
          Return:
          True if successful.
  
          """
  
          if type(value) not in (int, float):
              raise TypeError("Value is not of type 'int' or 'float'.")
  
          if value < self.min:
              raise ValueError("Value is less than attribute minimum.")
          elif value > self.max:
              raise ValueError("Value is greater than attribute maximum.")
  
          super(FloatAttribute, self).setValue(value)
  
          return True
  
      def getRTVal(self):
          """Returns and RTVal object for this attribute.
  
          Return:
          RTVal
  
          """
          return ks.rtVal('Scalar', self.value)
  
  
  
  
subject: add minValue and maxValue in FloatAttribute super function