@@ -76,7 +76,7 @@ def __init__(
7676 base = None ,
7777 Cache = None ,
7878 ):
79- """Set parameterdict defined by subclass
79+ """Set parameterdict defined by subclass.
8080
8181 Parameters
8282 ----------
@@ -159,32 +159,50 @@ def __init__(
159159 # "Virtual" class methods ####
160160
161161 def actualize (self , * args , ** kwds ):
162- """Create ModelPart instance of self with given parameters. ("Virtual" method)"""
162+ """Create ModelPart instance of self with given parameters.
163+
164+ ("Virtual" method)
165+ """
163166 emsg = "actualize() must be implemented in a BaseFunction subclass."
164167 raise NotImplementedError (emsg )
165168
166169 def estimate_parameters (self , * args , ** kwds ):
167- """Estimate BaseFunction parameters from supplied data. ("Virtual" method)"""
170+ """Estimate BaseFunction parameters from supplied data.
171+
172+ ("Virtual" method)
173+ """
168174 emsg = "estimate_parameters() must be implemented in a BaseFunction subclass."
169175 raise NotImplementedError (emsg )
170176
171177 def _jacobianraw (self , * args , ** kwds ):
172- """Calculate the jacobian. ("Virtual" method)"""
178+ """Calculate the jacobian.
179+
180+ ("Virtual" method)
181+ """
173182 emsg = "_jacobianraw() must be implemented in a BaseFunction subclass."
174183 raise NotImplementedError (emsg )
175184
176185 def _transform_derivativesraw (self , * args , ** kwds ):
177- """Convert BaseFunction parameters to another form. ("Virtual" method)"""
186+ """Convert BaseFunction parameters to another form.
187+
188+ ("Virtual" method)
189+ """
178190 emsg = "transform_parameters() must be implemented in a BaseFunction subclass."
179191 raise NotImplementedError (emsg )
180192
181193 def _transform_parametersraw (self , * args , ** kwds ):
182- """Convert BaseFunction parameters to another form. ("Virtual" method)"""
194+ """Convert BaseFunction parameters to another form.
195+
196+ ("Virtual" method)
197+ """
183198 emsg = "transform_parameters() must be implemented in a BaseFunction subclass."
184199 raise NotImplementedError (emsg )
185200
186201 def _valueraw (self , * args , ** kwds ):
187- """Calculate value of function. ("Virtual" method)"""
202+ """Calculate value of function.
203+
204+ ("Virtual" method)
205+ """
188206 emsg = "_valueraw must() be implemented in a BaseFunction subclass."
189207 raise NotImplementedError (emsg )
190208
@@ -373,7 +391,7 @@ def pgradient(self, p, format):
373391 return
374392
375393 def getmodule (self ):
376- """Return 'diffpy.srmise.basefunction'"""
394+ """Return 'diffpy.srmise.basefunction'. """
377395 return "diffpy.srmise.basefunction"
378396
379397 def writestr (self , baselist ):
@@ -480,7 +498,8 @@ def safefunctionlist(fs):
480498 is guaranteed to be safe for saving/reinstantiating peak functions.
481499
482500 Parameters
483- fs: List of BaseFunction instances."""
501+ fs: List of BaseFunction instances.
502+ """
484503 fsafe = []
485504 for f in fs :
486505 BaseFunction .safefunction (f , fsafe )
0 commit comments