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_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 
Note: See TracChangeset for help on using the changeset viewer.