|
20 | 20 | objects. See individual interface classes for specifics.
|
21 | 21 | """
|
22 | 22 |
|
23 |
| -__all__ = ["ParameterFactory", "ParameterInterface", "FitRecipeInterface", |
| 23 | +__all__ = ["ParameterInterface", "FitRecipeInterface", |
24 | 24 | "RecipeOrganizerInterface"]
|
25 | 25 |
|
26 | 26 | from diffpy.srfit.equation.literals.abcs import isinstance, ArgumentABC
|
@@ -148,25 +148,6 @@ def f(*args):
|
148 | 148 |
|
149 | 149 | # End class FitRecipeInterface
|
150 | 150 |
|
151 |
| -class ParameterFactory(object): |
152 |
| - """This class is used to create Parameters on demand.""" |
153 |
| - |
154 |
| - def __init__(self, parclass): |
155 |
| - """Initialize the factory. |
156 |
| -
|
157 |
| - parclass -- The class used to create new parameters (default |
158 |
| - diffpy.srfit.fitbase.parameter.Parameter) |
159 |
| - """ |
160 |
| - self._pclass = parclass |
161 |
| - |
162 |
| - def __getattr__(self, name): |
163 |
| - pcls = object.__getattribute__(self, '_pclass') |
164 |
| - par = pcls(name=name) |
165 |
| - setattr(self, name, par) |
166 |
| - return par |
167 |
| - |
168 |
| -# End class ParameterFactory |
169 |
| - |
170 | 151 | def _applymanyargs(args, f):
|
171 | 152 | """Apply arguments to a function.
|
172 | 153 |
|
|
0 commit comments