@@ -52,40 +52,39 @@ def __init__(self, inputs=1, outputs=1, dt=None):
5252 self .dt = dt
5353
5454 #
55- # Getter and setter functions for legacy input/output attributes
55+ # Getter and setter functions for legacy state attributes
5656 #
57- # For this iteration, generate a pending deprecation warning whenever
58- # the getter/setter is called. For a future iteration, turn it into a
59- # deprecation warning.
57+ # For this iteration, generate a deprecation warning whenever the
58+ # getter/setter is called. For a future iteration, turn it into a
59+ # future warning, so that users will see it .
6060 #
6161
6262 @property
6363 def inputs (self ):
64- raise PendingDeprecationWarning (
65- "The LTI `inputs` attribute will be deprecated in a future "
66- "release. Use `ninputs` instead." )
64+ warn ( "The LTI `inputs` attribute will be deprecated in a future "
65+ "release. Use `ninputs` instead." ,
66+ DeprecationWarning , stacklevel = 2 )
6767 return self .ninputs
6868
6969 @inputs .setter
7070 def inputs (self , value ):
71- raise PendingDeprecationWarning (
72- "The LTI `inputs` attribute will be deprecated in a future "
73- "release. Use `ninputs` instead." )
74-
71+ warn ("The LTI `inputs` attribute will be deprecated in a future "
72+ "release. Use `ninputs` instead." ,
73+ DeprecationWarning , stacklevel = 2 )
7574 self .ninputs = value
7675
7776 @property
7877 def outputs (self ):
79- raise PendingDeprecationWarning (
80- "The LTI `outputs` attribute will be deprecated in a future "
81- "release. Use `noutputs` instead." )
78+ warn ( "The LTI `outputs` attribute will be deprecated in a future "
79+ "release. Use `noutputs` instead." ,
80+ DeprecationWarning , stacklevel = 2 )
8281 return self .noutputs
8382
8483 @outputs .setter
8584 def outputs (self , value ):
86- raise PendingDeprecationWarning (
87- "The LTI `outputs` attribute will be deprecated in a future "
88- "release. Use `noutputs` instead." )
85+ warn ( "The LTI `outputs` attribute will be deprecated in a future "
86+ "release. Use `noutputs` instead." ,
87+ DeprecationWarning , stacklevel = 2 )
8988 self .noutputs = value
9089
9190 def isdtime (self , strict = False ):
0 commit comments