@@ -72,6 +72,7 @@ def __init__(self, name, value=None, const=False):
7272 A flag inticating whether the Parameter is a constant (like
7373 pi).
7474
75+
7576 Raises ValueError if the name is not a valid attribute identifier
7677 """
7778 self .constrained = False
@@ -94,7 +95,10 @@ def setValue(self, val):
9495 The upper bounds for the bounds list. If this is None
9596 (default), then the upper bound will not be alterered.
9697
97- Returns self so that mutators can be chained.
98+ Returns
99+ -------
100+ self
101+ Returns self so that mutators can be chained.
98102 """
99103 Argument .setValue (self , val )
100104 return self
@@ -112,7 +116,10 @@ def setConst(self, const=True, value=None):
112116 is not None, then the parameter will get a new value,
113117 constant or otherwise.
114118
115- Returns self so that mutators can be chained.
119+ Returns
120+ -------
121+ self
122+ Returns self so that mutators can be chained.
116123 """
117124 self .const = bool (const )
118125 if value is not None :
@@ -129,7 +136,10 @@ def boundRange(self, lb=None, ub=None):
129136 ub
130137 The upper bound for the bounds list.
131138
132- Returns self so that mutators can be chained.
139+ Returns
140+ -------
141+ self
142+ Returns self so that mutators can be chained.
133143 """
134144 if lb is not None :
135145 self .bounds [0 ] = lb
@@ -150,7 +160,10 @@ def boundWindow(self, lr=0, ur=None):
150160 value + ur. If this is None (default), then the value of the
151161 lower radius is used.
152162
153- Returns self so that mutators can be chained.
163+ Returns
164+ -------
165+ self
166+ Returns self so that mutators can be chained.
154167 """
155168 val = self .getValue ()
156169 lb = val - lr
@@ -199,6 +212,7 @@ def __init__(self, name, par):
199212 par
200213 The Parameter this is a proxy for.
201214
215+
202216 Raises ValueError if the name is not a valid attribute identifier
203217 """
204218 validateName (name )
@@ -312,6 +326,7 @@ def __init__(self, name, obj, getter=None, setter=None, attr=None):
312326 parameter. If attr is None (default), then both getter and
313327 setter must be specified.
314328
329+
315330 Raises ValueError if exactly one of getter or setter is not None, or if
316331 getter, setter and attr are all None.
317332 """
0 commit comments