Skip to content

Commit 6458a3e

Browse files
numpydoc build on peakstability (#83)
1 parent e87962f commit 6458a3e

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

Diff for: src/diffpy/srmise/peakstability.py

+28-7
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,17 @@ def plot(self, **kwds):
125125
)
126126

127127
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+
"""
129139
self.current = idx
130140
if idx is not None:
131141
result = self.results[idx]
@@ -140,11 +150,15 @@ def setcurrent(self, idx):
140150
def animate(self, results=None, step=False, **kwds):
141151
"""Show animation of extracted peaks from first to last.
142152
143-
Parameters:
144-
step - Require keypress to show next plot
145-
results - The indices of results to show
153+
Keywords passed to pyplot.plot()
146154
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+
"""
148162
if results is None:
149163
results = range(len(self.results))
150164

@@ -165,9 +179,16 @@ def animate(self, results=None, step=False, **kwds):
165179
self.setcurrent(oldcurrent)
166180

167181
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."""
169191

170-
If savecovs is True, return the covariance matrix for each final fit."""
171192
self.results = []
172193
covs = []
173194
for i, e in enumerate(err):

0 commit comments

Comments
 (0)