@@ -125,7 +125,17 @@ def plot(self, **kwds):
125
125
)
126
126
127
127
def setcurrent (self , idx ):
128
- """Make the idxth model the active one."""
128
+ """Make the idxth model the active one.
129
+
130
+ Parameters
131
+ ----------
132
+ idx : int
133
+ The index of the model to be tested.
134
+
135
+ Returns
136
+ -------
137
+ None
138
+ """
129
139
self .current = idx
130
140
if idx is not None :
131
141
result = self .results [idx ]
@@ -140,11 +150,15 @@ def setcurrent(self, idx):
140
150
def animate (self , results = None , step = False , ** kwds ):
141
151
"""Show animation of extracted peaks from first to last.
142
152
143
- Parameters:
144
- step - Require keypress to show next plot
145
- results - The indices of results to show
153
+ Keywords passed to pyplot.plot()
146
154
147
- Keywords passed to pyplot.plot()"""
155
+ Parameters
156
+ ----------
157
+ step : bool
158
+ Require keypress to show next plot
159
+ results array-like
160
+ The indices of results to show
161
+ """
148
162
if results is None :
149
163
results = range (len (self .results ))
150
164
@@ -165,9 +179,16 @@ def animate(self, results=None, step=False, **kwds):
165
179
self .setcurrent (oldcurrent )
166
180
167
181
def run (self , err , savecovs = False ):
168
- """err is sequence of uncertainties to run at.
182
+ """Running the uncertainty for the results.
183
+
184
+ Parameters
185
+ ----------
186
+ err : array-like
187
+ The sequence of uncertainties to run at.
188
+ savecovs : bool
189
+ boolean to determine to save covariance matrix. Default is False.
190
+ If savecovs is True, return the covariance matrix for each final fit."""
169
191
170
- If savecovs is True, return the covariance matrix for each final fit."""
171
192
self .results = []
172
193
covs = []
173
194
for i , e in enumerate (err ):
0 commit comments