Ignore:
Timestamp:
Mar 7, 2013 12:17:43 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
0d795bf
Parents:
00852df
Message:

fixed problems in custom pinhole and slit states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/pagestate.py

    ra805118 rdb8fd5b  
    6969                      ["smear_type","smear_type", "string"], 
    7070                      ["dq_l", "dq_l", "string"], 
    71                       ["dq_r","dq_r", "string"]] 
     71                      ["dq_r","dq_r", "string"], 
     72                      ["dx_max", "dx_max", "float"], 
     73                      ["dx_min","dx_min", "float"], 
     74                      ["dxl", "dxl", "float"], 
     75                      ["dxw","dxw", "float"]] 
    7276 
    7377list_of_model_attributes = [["values", "values"], 
     
    208212        self.dq_l = None 
    209213        self.dq_r = None 
    210  
     214        self.dx_max = None 
     215        self.dx_min = None 
     216        self.dxl = None 
     217        self.dxw = None 
    211218        #list of dispersion paramaters 
    212219        self.disp_list = [] 
     
    332339        obj.dq_l = copy.deepcopy(self.dq_l) 
    333340        obj.dq_r = copy.deepcopy(self.dq_r) 
    334  
     341        obj.dx_max = copy.deepcopy(self.dx_max) 
     342        obj.dx_min = copy.deepcopy(self.dx_min) 
     343        obj.dxl = copy.deepcopy(self.dxl) 
     344        obj.dxw = copy.deepcopy(self.dxw)         
    335345        obj.disp_box = copy.deepcopy(self.disp_box) 
    336346        obj.qmin = copy.deepcopy(self.qmin) 
     
    417427        rep += "dq_l  : %s\n" % self.dq_l 
    418428        rep += "dq_r  : %s\n" % self.dq_r 
    419          
     429        rep += "dx_max  : %s\n" % str(self.dx_max) 
     430        rep += "dx_min : %s\n" % str(self.dx_min)   
     431        rep += "dxl  : %s\n" % str(self.dxl) 
     432        rep += "dxw : %s\n" % str(self.dxw)     
    420433        rep += "model  : %s\n\n" % str(self.model) 
    421434        temp_parameters = [] 
Note: See TracChangeset for help on using the changeset viewer.