Show
Ignore:
Timestamp:
04/16/09 21:29:30 (6 years ago)
Author:
rezoo
Message:

add demarker.py

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/python/tremolo/tremolo/indications/moving_average.py

    r32262 r32495  
    5656                        self.__denominator = length*(length+1)/2.0 
    5757                        self.__cache_list  = [(length-i) for i in xrange(length)] 
    58                 else: raise TypeError("the variable 'length' is not valid.") 
     58                else: raise AttributeError("the attribute 'length' is not valid.") 
    5959         
    6060        def getDescription(self): 
     
    6767                        self.__denominator = length*(length+1)/2.0 
    6868                        self.__cache_list  = [(length-i) for i in xrange(length)] 
    69                 else: raise TypeError("the variable 'length' is not valid.") 
     69                else: raise AttributeError 
    7070        length = property(getLength, setLength) 
    7171