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

Location:
fittingview/src/sans/perspectives/fitting/plugin_models
Files:
2 edited

Legend:

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

    r4ce74b44 r318b5bbb  
    6363        ## Parameter details [units, min, max] 
    6464        self.details = {} 
     65        ## Magnetic Panrameters 
     66        self.magnetic_params = [] 
    6567         
    6668        # non-fittable parameters 
     
    9799            if not new_item in self.orientation_params: 
    98100                self.orientation_params.append(new_item) 
     101        ## magnetic params 
     102        for item in self.p_model1.magnetic_params: 
     103            new_item = "p1_" + item 
     104            if not new_item in self.magnetic_params: 
     105                self.magnetic_params.append(new_item) 
     106             
     107        for item in self.p_model2.magnetic_params: 
     108            new_item = "p2_" + item 
     109            if not new_item in self.magnetic_params: 
     110                self.magnetic_params.append(new_item) 
    99111        # set multiplicity 1: muti_func Not supported. 
    100112        multiplicity1 = 1 
  • fittingview/src/sans/perspectives/fitting/plugin_models/sum_p1_p2.py

    r4ce74b44 r318b5bbb  
    9191        self._set_details() 
    9292        self.details['scale_factor'] = ['',  None, None] 
    93  
     93        ## Magnetic Panrameters 
     94        self.magnetic_params = [] 
    9495         
    9596        #list of parameter that can be fitted 
     
    105106            if not new_item in self.orientation_params: 
    106107                self.orientation_params.append(new_item) 
     108        ## magnetic params 
     109        for item in self.p_model1.magnetic_params: 
     110            new_item = "p1_" + item 
     111            if not new_item in self.magnetic_params: 
     112                self.magnetic_params.append(new_item) 
     113             
     114        for item in self.p_model2.magnetic_params: 
     115            new_item = "p2_" + item 
     116            if not new_item in self.magnetic_params: 
     117                self.magnetic_params.append(new_item) 
    107118        # set multiplicity 1: muti_func Not supported. 
    108119        multiplicity1 = 1 
Note: See TracChangeset for help on using the changeset viewer.