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/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.