1717"""
1818
1919import copy
20+
2021import numpy
2122
22- from diffpy .pdfgui .control .pdfdataset import PDFDataSet
23- from diffpy .pdfgui .control .parameter import Parameter
2423from diffpy .pdfgui .control .controlerrors import ControlStatusError
24+ from diffpy .pdfgui .control .parameter import Parameter
25+ from diffpy .pdfgui .control .pdfdataset import PDFDataSet
2526
2627
2728class FitDataSet (PDFDataSet ):
@@ -112,9 +113,7 @@ def getYNames(self):
112113
113114 returns list of strings
114115 """
115- ynames = ["Gobs" , "Gcalc" , "Gdiff" , "Gtrunc" , "dGcalc" , "crw" ] + list (
116- self .constraints .keys ()
117- )
116+ ynames = ["Gobs" , "Gcalc" , "Gdiff" , "Gtrunc" , "dGcalc" , "crw" ] + list (self .constraints .keys ())
118117 return ynames
119118
120119 def getXNames (self ):
@@ -321,10 +320,7 @@ def writeCalcStr(self):
321320 Gdiff = self .Gdiff
322321 drcalc = 0.0
323322 for i in range (len (self .rcalc )):
324- lines .append (
325- "%g %g %.1f %g %g"
326- % (self .rcalc [i ], self .Gcalc [i ], drcalc , self .dGcalc [i ], Gdiff [i ])
327- )
323+ lines .append ("%g %g %.1f %g %g" % (self .rcalc [i ], self .Gcalc [i ], drcalc , self .dGcalc [i ], Gdiff [i ]))
328324 # lines are ready here
329325 datastring = "\n " .join (lines ) + "\n "
330326 return datastring
@@ -636,9 +632,7 @@ def _set_fitrmin(self, value):
636632 self ._fitrmin = float (value )
637633 return
638634
639- fitrmin = property (
640- _get_fitrmin , _set_fitrmin , doc = "Lower boundary for simulated PDF curve."
641- )
635+ fitrmin = property (_get_fitrmin , _set_fitrmin , doc = "Lower boundary for simulated PDF curve." )
642636
643637 # fitrmax
644638
@@ -650,9 +644,7 @@ def _set_fitrmax(self, value):
650644 self ._fitrmax = float (value )
651645 return
652646
653- fitrmax = property (
654- _get_fitrmax , _set_fitrmax , doc = "Upper boundary for simulated PDF curve."
655- )
647+ fitrmax = property (_get_fitrmax , _set_fitrmax , doc = "Upper boundary for simulated PDF curve." )
656648
657649 # fitrstep
658650
@@ -664,9 +656,7 @@ def _set_fitrstep(self, value):
664656 self ._fitrstep = float (value )
665657 return
666658
667- fitrstep = property (
668- _get_fitrstep , _set_fitrstep , doc = "R-step used for simulated PDF curve."
669- )
659+ fitrstep = property (_get_fitrstep , _set_fitrstep , doc = "R-step used for simulated PDF curve." )
670660
671661 # rcalc
672662
@@ -707,9 +697,7 @@ def _set_dGcalc(self, value):
707697 self ._dGcalc = value
708698 return
709699
710- dGcalc = property (
711- _get_dGcalc , _set_dGcalc , doc = "List of standard deviations of Gcalc."
712- )
700+ dGcalc = property (_get_dGcalc , _set_dGcalc , doc = "List of standard deviations of Gcalc." )
713701
714702 # Gtrunc
715703
@@ -757,9 +745,7 @@ def _get_Gdiff(self):
757745 rv = []
758746 return rv
759747
760- Gdiff = property (
761- _get_Gdiff , doc = "Difference between observed and calculated PDF on rcalc grid."
762- )
748+ Gdiff = property (_get_Gdiff , doc = "Difference between observed and calculated PDF on rcalc grid." )
763749
764750 # crw
765751 def _get_crw (self ):
0 commit comments