@@ -15,13 +15,13 @@ class point(BaseEntityClass):
1515 '''Entity point definition.
1616
1717 :param arr_real
18- :type arr_real:(null )
18+ :type arr_real:ARRAY(1,3,'REAL' )
1919
2020 :param arr_string
21- :type arr_string:(null )
21+ :type arr_string:ARRAY(1,3,'STRING' )
2222
2323 :param arr_integer
24- :type arr_integer:(null )
24+ :type arr_integer:ARRAY(1,None,'INTEGER' )
2525 '''
2626 def __init__ ( self , arr_real ,arr_string ,arr_integer , ):
2727 self .arr_real = arr_real
@@ -36,8 +36,10 @@ def fset( self, value ):
3636 # Mandatory argument
3737 if value == None :
3838 raise AssertionError ('Argument arr_real is mantatory and can not be set to None' )
39- check_type (value ,ARRAY (1 ,3 ,REAL ))
40- self ._arr_real = value
39+ if not check_type (value ,ARRAY (1 ,3 ,'REAL' )):
40+ self ._arr_real = ARRAY (value )
41+ else :
42+ self ._arr_real = value
4143 return property (** locals ())
4244
4345 @apply
@@ -48,8 +50,10 @@ def fset( self, value ):
4850 # Mandatory argument
4951 if value == None :
5052 raise AssertionError ('Argument arr_string is mantatory and can not be set to None' )
51- check_type (value ,ARRAY (1 ,3 ,STRING ))
52- self ._arr_string = value
53+ if not check_type (value ,ARRAY (1 ,3 ,'STRING' )):
54+ self ._arr_string = ARRAY (value )
55+ else :
56+ self ._arr_string = value
5357 return property (** locals ())
5458
5559 @apply
@@ -60,6 +64,8 @@ def fset( self, value ):
6064 # Mandatory argument
6165 if value == None :
6266 raise AssertionError ('Argument arr_integer is mantatory and can not be set to None' )
63- check_type (value ,ARRAY (1 ,None ,INTEGER ))
64- self ._arr_integer = value
67+ if not check_type (value ,ARRAY (1 ,None ,'INTEGER' )):
68+ self ._arr_integer = ARRAY (value )
69+ else :
70+ self ._arr_integer = value
6571 return property (** locals ())
0 commit comments