2626
2727
2828class FitDataSet (PDFDataSet ):
29- """FitDataSet stores experimental and calculated PDF data and related
30- fitting parameters. Inherited from PDFDataSet.
29+ """FitDataSet stores experimental and calculated PDF data and
30+ related fitting parameters. Inherited from PDFDataSet.
3131
3232 Data members (in addition to those in PDFDataSet):
3333
@@ -204,8 +204,8 @@ def read(self, filename):
204204 return self .readObs (filename )
205205
206206 def _updateRcalcRange (self ):
207- """Helper method for updating fitrmin, fitrmax and fitrstep just after
208- reading observed values.
207+ """Helper method for updating fitrmin, fitrmax and fitrstep just
208+ after reading observed values.
209209
210210 No return value.
211211 """
@@ -243,7 +243,8 @@ def readObsStr(self, datastring):
243243 return self
244244
245245 def write (self , filename ):
246- """Same as writeCalc(). Use writeObs() to save experimental PDF data.
246+ """Same as writeCalc(). Use writeObs() to save experimental PDF
247+ data.
247248
248249 filename -- name of file to write to
249250
@@ -266,7 +267,8 @@ def writeCalc(self, filename):
266267 return
267268
268269 def writeStr (self ):
269- """Same as writeCalcStr. Use writeObsStr() for experimental PDF.
270+ """Same as writeCalcStr. Use writeObsStr() for experimental
271+ PDF.
270272
271273 Return data string.
272274 """
@@ -377,9 +379,9 @@ def writeResampledObsStr(self):
377379 return s
378380
379381 def findParameters (self ):
380- """Obtain dictionary of parameters used by self.constraints. The keys
381- of returned dictionary are integer parameter indices, and their values
382- Parameter instances, with guessed initial values.
382+ """Obtain dictionary of parameters used by self.constraints. The
383+ keys of returned dictionary are integer parameter indices, and
384+ their values Parameter instances, with guessed initial values.
383385
384386 returns dictionary of indices and Parameter instances
385387 """
@@ -527,9 +529,9 @@ def save(self, z, subpath):
527529 # interface for data sampling
528530
529531 def getFitSamplingType (self ):
530- """Description of r-sampling used in the fit. This method compares
531- self.fitrstep with r-sampling in the observed data and with Nyquist r
532- step.
532+ """Description of r-sampling used in the fit. This method
533+ compares self.fitrstep with r-sampling in the observed data and
534+ with Nyquist r step.
533535
534536 Return a string, possible values are "data", "Nyquist" or
535537 "custom".
@@ -568,7 +570,8 @@ def setFitSamplingType(self, tp, value=None):
568570 return
569571
570572 def getObsSampling (self ):
571- """Return the average r-step used in robs or zero when not defined."""
573+ """Return the average r-step used in robs or zero when not
574+ defined."""
572575 n = len (self .robs )
573576 if n > 1 :
574577 rv = (self .robs [- 1 ] - self .robs [0 ]) / (n - 1.0 )
@@ -577,7 +580,8 @@ def getObsSampling(self):
577580 return rv
578581
579582 def getNyquistSampling (self ):
580- """Return r-step corresponding to Nyquist sampling at the qmax value.
583+ """Return r-step corresponding to Nyquist sampling at the qmax
584+ value.
581585
582586 When qmax is zero, return r-step in the observed data.
583587 """
@@ -590,9 +594,9 @@ def getNyquistSampling(self):
590594 # Property Attributes
591595
592596 def _updateRcalcSampling (self ):
593- """Helper method for resampling rcalc and interpolating related data.
594- This method interpolates Gcalc, dGcalc, Gtrunc, dGtrunc, crw to new r
595- grid.
597+ """Helper method for resampling rcalc and interpolating related
598+ data. This method interpolates Gcalc, dGcalc, Gtrunc, dGtrunc,
599+ crw to new r grid.
596600
597601 No return value.
598602 """
@@ -815,8 +819,8 @@ def _linear_interpolation(x0, y0, x1, youtleft, youtright):
815819
816820
817821def grid_interpolation (x0 , y0 , x1 , left = None , right = None , tp = None ):
818- """Interpolate values from one grid onto another using either linear or
819- Whittaker–Shannon interpolation.
822+ """Interpolate values from one grid onto another using either linear
823+ or Whittaker–Shannon interpolation.
820824
821825 Parameters
822826 ----------
0 commit comments