Skip to content

Commit ca832a6

Browse files
committed
test/func: modifying refinement to allow lists and dicts and adding a test of refinement for squeeze and funcy
1 parent 997c8c1 commit ca832a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/diffpy/morph/refine.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
class Refiner(object):
2727
"""Class for refining a Morph or MorphChain.
2828
29+
This is provided to allow for custom residuals and refinement algorithms.
30+
2931
Attributes
3032
----------
3133
chain
@@ -158,7 +160,7 @@ def refine(self, *args, **kw):
158160
emesg
159161
raise ValueError(emesg)
160162

161-
# Place the fit parameters back into config
163+
# Place the fit parameters in config
162164
vals = sol
163165
if not hasattr(vals, "__iter__"):
164166
vals = [vals]

0 commit comments

Comments
 (0)