Ignore:
Timestamp:
Dec 18, 2012 10:55:24 AM (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:
6550b64
Parents:
0203ade
Message:

Added polarization and magnetic stuffs

File:
1 edited

Legend:

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

    r2c44cf8 r318b5bbb  
    5252                      ["structurecombobox", "structurecombobox", "string"], 
    5353                      ["multi_factor","multi_factor","float"], 
     54                      ["magnetic_on","magnetic_on", "bool"], 
    5455                      ["enable_smearer","enable_smearer","bool"], 
    5556                      ["disable_smearer","disable_smearer","bool"], 
     
    246247        self.name = "" 
    247248        self.multi_factor = None 
     249        self.magnetic_on = False 
    248250        ## enable smearering state 
    249251        self.enable_smearer = False 
     
    335337        obj.qmax = copy.deepcopy(self.qmax) 
    336338        obj.multi_factor = self.multi_factor 
     339        obj.magnetic_on = self.magnetic_on 
    337340        obj.npts = copy.deepcopy(self.npts) 
    338341        obj.cb1 = copy.deepcopy(self.cb1) 
     
    385388        #rep += "model type (form factor) selected: %s\n" % self.shape_rbutton  
    386389        rep += "multi_factor : %s\n" % str(self.multi_factor) 
     390        rep += "magnetic_on : %s\n"% str(self.magnetic_on) 
    387391        rep += "model type (Category) selected: %s\n" % self.categorycombobox 
    388392        #rep += "model type (shape independent) selected: %s\n" % self.shape_indep_rbutton 
     
    500504                muti_factor = ("muti_factor = " + value) 
    501505                muti_factor_string = CENTRE % muti_factor 
     506            if name == "magentic_on ": 
     507                magentic_on = ("magentic_on = " + value) 
     508                if string(value) == 'True': 
     509                    magentic_on_string = CENTRE % magentic_on 
    502510            if name == "Title": 
    503511                if len(value.strip()) == 0: 
Note: See TracChangeset for help on using the changeset viewer.