Index: src/sas/perspectives/fitting/fitproblem.py
===================================================================
--- src/sas/perspectives/fitting/fitproblem.py	(revision 7a04dbb34bb699a5460b3ad23209d05b641f3265)
+++ src/sas/perspectives/fitting/fitproblem.py	(revision 2f4b43041eaa7b7f496750f223a299cb33cd268e)
@@ -27,5 +27,5 @@
         flag is 0 ingore smear value.
         """
-        
+
     def get_smearer(self):
         """
@@ -35,9 +35,9 @@
         """
         """
-        
+
     def get_name(self):
         """
         """
-        
+
     def set_model(self, model):
         """
@@ -46,10 +46,10 @@
         :param name: name created for model
         """
-        
+
     def get_model(self):
         """
         :return: saved model
         """
-        
+
     def set_residuals(self, residuals):
         """
@@ -57,10 +57,10 @@
         :param data: data selected
         """
-        
+
     def get_residuals(self):
         """
         :return: residuals
         """
-        
+
     def set_theory_data(self, data):
         """
@@ -68,10 +68,10 @@
         :param data: data selected
         """
-        
+
     def get_theory_data(self):
         """
         :return: list of data dList
         """
-        
+
     def set_fit_data(self, data):
         """
@@ -81,9 +81,9 @@
         :param data: list of data selected
         """
-        
+
     def get_fit_data(self):
         """
         """
-        
+
     def set_model_param(self, name, value=None):
         """
@@ -92,5 +92,5 @@
         :param value: value of that parameter
         """
-        
+
     def set_param2fit(self, list):
         """
@@ -98,65 +98,65 @@
         :param list: list of the param names
         """
-        
+
     def get_param2fit(self):
         """
         return the list param names to fit
         """
-        
+
     def get_model_param(self):
         """
         return list of couple of parameter name and value
         """
-        
+
     def schedule_tofit(self, schedule=0):
         """
         set schedule to true to decide if this fit  must be performed
         """
-        
+
     def get_scheduled(self):
         """
         return true or false if a problem as being schedule for fitting
         """
-        
+
     def set_range(self, qmin=None, qmax=None):
         """
         set fitting range
         """
-        
+
     def get_range(self):
         """
         :return: fitting range
         """
-        
+
     def set_weight(self, flag=None):
         """
         set fitting range
         """
-        
+
     def get_weight(self):
         """
         get fitting weight
         """
-        
+
     def clear_model_param(self):
         """
         clear constraint info
         """
-        
+
     def set_fit_tab_caption(self, caption):
         """
         store the caption of the page associated with object
         """
-        
+
     def get_fit_tab_caption(self):
         """
         Return the caption of the page associated with object
         """
-        
+
     def set_graph_id(self, id):
         """
-        Set graph id (from data_group_id at the time the graph produced) 
-        """
-        
+        Set graph id (from data_group_id at the time the graph produced)
+        """
+
     def get_graph_id(self):
         """
@@ -173,5 +173,5 @@
         """
 
-   
+
 class FitProblemDictionary(FitProblemComponent, dict):
     """
@@ -198,5 +198,5 @@
         self.batch_inputs = {}
         self.batch_outputs = {}
- 
+
     def enable_smearing(self, flag=False, fid=None):
         """
@@ -211,5 +211,5 @@
             if fid in self.iterkeys():
                 self[fid].enable_smearing(flag)
-        
+
     def set_smearer(self, smearer, fid=None):
         """
@@ -223,5 +223,5 @@
             if fid in self.iterkeys():
                 self[fid].set_smearer(smearer)
-                
+
     def get_smearer(self, fid=None):
         """
@@ -230,5 +230,5 @@
         if fid in self.iterkeys():
             return self[fid].get_smearer()
-     
+
     def save_model_name(self, name, fid=None):
         """
@@ -240,5 +240,5 @@
             if fid in self.iterkeys():
                 self[fid].save_model_name(name)
-                
+
     def get_name(self, fid=None):
         """
@@ -252,5 +252,5 @@
                 result.append(self[fid].get_name())
         return result
-    
+
     def set_model(self, model, fid=None):
         """
@@ -266,5 +266,5 @@
             if fid in self.iterkeys():
                 self[fid].set_model(self.model)
-      
+
     def get_model(self, fid):
         """
@@ -273,5 +273,5 @@
         if fid in self.iterkeys():
             return self[fid].get_model()
-       
+
     def set_fit_tab_caption(self, caption):
         """
@@ -279,5 +279,5 @@
         """
         self.fit_tab_caption = caption
-    
+
     def get_fit_tab_caption(self):
         """
@@ -285,5 +285,5 @@
         """
         return self.fit_tab_caption
-    
+
     def set_residuals(self, residuals, fid):
         """
@@ -293,5 +293,5 @@
         if fid in self.iterkeys():
             self[fid].set_residuals(residuals)
-            
+
     def get_residuals(self, fid):
         """
@@ -300,5 +300,5 @@
         if fid in self.iterkeys():
             return self[fid].get_residuals()
-        
+
     def set_theory_data(self, fid, data=None):
         """
@@ -308,5 +308,5 @@
         if fid in self.iterkeys():
             self[fid].set_theory_data(data)
-            
+
     def get_theory_data(self, fid):
         """
@@ -315,5 +315,5 @@
         if fid in self.iterkeys():
             return self[fid].get_theory_data()
-            
+
     def add_data(self, data):
         """
@@ -325,10 +325,10 @@
             self[data.id] = FitProblem()
         self[data.id].set_fit_data(data)
-        
+
     def set_fit_data(self, data):
         """
         save a copy of the data select to fit
         :param data: data selected
-        
+
         """
         self.clear()
@@ -342,5 +342,5 @@
                 self[d.id].set_model(self.model)
                 self[d.id].set_range(self.qmin, self.qmax)
-                
+
     def get_fit_data(self, fid):
         """
@@ -351,5 +351,5 @@
         if fid in self.iterkeys():
             return self[fid].get_fit_data()
-   
+
     def set_model_param(self, name, value=None, fid=None):
         """
@@ -364,5 +364,5 @@
             if fid in self.iterkeys():
                 self[fid].set_model_param(name, value)
-                
+
     def get_model_param(self, fid):
         """
@@ -371,5 +371,5 @@
         if fid in self.iterkeys():
             return self[fid].get_model_param()
-    
+
     def set_param2fit(self, list):
         """
@@ -378,5 +378,5 @@
         """
         self.list_param2fit = list
-        
+
     def get_param2fit(self):
         """
@@ -384,5 +384,5 @@
         """
         return self.list_param2fit
-          
+
     def schedule_tofit(self, schedule=0):
         """
@@ -392,5 +392,5 @@
         for value in self.itervalues():
             value.schedule_tofit(schedule)
-      
+
     def get_scheduled(self):
         """
@@ -398,5 +398,5 @@
         """
         return self.scheduled
-    
+
     def set_range(self, qmin=None, qmax=None, fid=None):
         """
@@ -411,5 +411,5 @@
             if fid in self.iterkeys():
                 self[fid].value.set_range(self.qmin, self.qmax)
-        
+
     def get_range(self, fid):
         """
@@ -418,5 +418,5 @@
         if fid in self.iterkeys():
             return self[fid].get_range()
-        
+
     def set_weight(self, is2d, flag=None, fid=None):
         """
@@ -429,5 +429,5 @@
             if fid in self.iterkeys():
                 self[fid].set_weight(flag=flag, is2d=is2d)
-                
+
     def get_weight(self, fid=None):
         """
@@ -436,5 +436,5 @@
         if fid in self.iterkeys():
             return self[fid].get_weight()
-                 
+
     def clear_model_param(self, fid=None):
         """
@@ -447,5 +447,5 @@
             if fid in self.iterkeys():
                 self[fid].clear_model_param()
-                
+
     def get_fit_problem(self):
         """
@@ -453,5 +453,5 @@
         """
         return self.itervalues()
-    
+
     def set_result(self, result, fid):
         """
@@ -459,5 +459,5 @@
         if fid in self.iterkeys():
             self[fid].set_result(result)
-            
+
     def set_batch_result(self, batch_inputs, batch_outputs):
         """
@@ -466,5 +466,5 @@
         self.batch_inputs = batch_inputs
         self.batch_outputs = batch_outputs
-             
+
     def get_result(self, fid):
         """
@@ -473,5 +473,5 @@
         if fid in self.iterkeys():
             return self[fid].get_result()
-            
+
     def get_batch_result(self):
         """
@@ -479,11 +479,11 @@
         """
         return self.batch_inputs, self.batch_outputs
-    
+
     def set_graph_id(self, id):
         """
-        Set graph id (from data_group_id at the time the graph produced) 
+        Set graph id (from data_group_id at the time the graph produced)
         """
         self.graph_id = id
-        
+
     def get_graph_id(self):
         """
@@ -491,6 +491,6 @@
         """
         return self.graph_id
-    
-    
+
+
 class FitProblem(FitProblemComponent):
     """
@@ -527,5 +527,5 @@
         self.weight = None
         self.result = None
-        
+
     def enable_smearing(self, flag=False):
         """
@@ -534,14 +534,14 @@
         """
         self.smearer_enable = flag
-        
+
     def set_smearer(self, smearer):
         """
         save reference of  smear object on fitdata
-        
+
         :param smear: smear object from DataLoader
-        
+
         """
         self.smearer_computer_value = smearer
-       
+
     def get_smearer(self):
         """
@@ -556,15 +556,15 @@
             self.smearer_computed = True
         return self.smearer_computer_value
-    
+
     def save_model_name(self, name):
         """
         """
         self.name_per_page = name
-        
+
     def get_name(self):
         """
         """
         return self.name_per_page
-    
+
     def set_model(self, model):
         """
@@ -577,5 +577,5 @@
                                                            self.model)
         self.smearer_computed = True
-        
+
     def get_model(self):
         """
@@ -583,5 +583,5 @@
         """
         return self.model
-   
+
     def set_residuals(self, residuals):
         """
@@ -590,5 +590,5 @@
         """
         self.residuals = residuals
-            
+
     def get_residuals(self):
         """
@@ -596,14 +596,14 @@
         """
         return self.residuals
-        
+
     def set_theory_data(self, data):
         """
         save a copy of the data select to fit
-        
+
         :param data: data selected
-        
+
         """
         self.theory_data = copy.deepcopy(data)
-        
+
     def get_theory_data(self):
         """
@@ -627,5 +627,5 @@
         self.smearer_computed = True
         self.result = None
-        
+
     def get_fit_data(self):
         """
@@ -633,10 +633,10 @@
         """
         return self.fit_data
-    
+
     def get_origin_data(self):
         """
         """
         return self.original_data
-    
+
     def set_weight(self, is2d, flag=None):
         """
@@ -658,5 +658,5 @@
         """
         return self.weight
-    
+
     def set_param2fit(self, list):
         """
@@ -665,5 +665,5 @@
         """
         self.list_param2fit = list
-        
+
     def get_param2fit(self):
         """
@@ -671,5 +671,5 @@
         """
         return self.list_param2fit
-    
+
     def set_model_param(self, name, value=None):
         """
@@ -679,5 +679,5 @@
         """
         self.list_param.append([name, value])
-        
+
     def get_model_param(self):
         """
@@ -685,5 +685,5 @@
         """
         return self.list_param
-        
+
     def schedule_tofit(self, schedule=0):
         """
@@ -691,5 +691,5 @@
         """
         self.schedule = schedule
-        
+
     def get_scheduled(self):
         """
@@ -697,5 +697,5 @@
         """
         return self.schedule
-    
+
     def set_range(self, qmin=None, qmax=None):
         """
@@ -706,12 +706,12 @@
         self.qmin = qmin
         self.qmax = qmax
-        
+
     def get_range(self):
         """
         :return: fitting range
-        
+
         """
         return self.qmin, self.qmax
-    
+
     def clear_model_param(self):
         """
@@ -719,15 +719,15 @@
         """
         self.list_param = []
-        
+
     def set_fit_tab_caption(self, caption):
         """
         """
         self.fit_tab_caption = str(caption)
-        
+
     def get_fit_tab_caption(self):
         """
         """
         return self.fit_tab_caption
-    
+
     def set_graph_id(self, id):
         """
@@ -735,5 +735,5 @@
         """
         self.graph_id = id
-        
+
     def get_graph_id(self):
         """
@@ -741,10 +741,10 @@
         """
         return self.graph_id
-    
+
     def set_result(self, result):
         """
         """
         self.result = result
-        
+
     def get_result(self):
         """
