Changeset d7b6913 in sasview for sanscalculator


Ignore:
Timestamp:
Jan 4, 2013 11:41:30 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:
4726f7c
Parents:
077207b
Message:

sans gen utest

Location:
sanscalculator
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • sanscalculator/src/sans/calculator/sans_gen.py

    r077207b rd7b6913  
    5555        self.params['scale']       = 1.0 
    5656        self.params['background']  = 0.0 
    57         self.params['Up_frac_i']     = 0.5 
    58         self.params['Up_frac_f']    = 0.5 
     57        self.params['Up_frac_in']     = 0.5 
     58        self.params['Up_frac_out']    = 0.5 
    5959        self.params['Up_theta']  = 0.0 
    6060        self.description='GenSAS' 
     
    6363        self.details['scale']      = ['', None, None] 
    6464        self.details['background'] = ['[1/cm]', None, None] 
    65         self.details['Up_frac_i']    = ['[u/(u+d)]', None, None] 
    66         self.details['Up_frac_f']   = ['[u/(u+d)]', None, None] 
     65        self.details['Up_frac_in']    = ['[u/(u+d)]', None, None] 
     66        self.details['Up_frac_out']   = ['[u/(u+d)]', None, None] 
    6767        self.details['Up_theta'] = ['[deg]', None, None] 
    6868        # fixed parameters 
     
    7878        """ 
    7979        Evaluate the function 
    80         :Param x: x-value 
     80        :Param x: array of x-values 
     81        :Param y: array of y-values 
     82        :Param i: array of initial i-value  
    8183        :return: function value 
    8284        """ 
     
    8587        model = mod.new_GenI(len_x, self.data_x, self.data_y, self.data_z,  
    8688                             self.data_sldn, self.data_mx, self.data_my,  
    87                              self.data_mz, self.params['Up_frac_i'],  
    88                              self.params['Up_frac_f'], self.params['Up_theta']) 
     89                             self.data_mz, self.params['Up_frac_in'],  
     90                             self.params['Up_frac_out'],  
     91                             self.params['Up_theta']) 
    8992        mod.genicom(model, len_q, x, y, i) 
    9093        return  self.params['scale'] * i * self.volume \ 
Note: See TracChangeset for help on using the changeset viewer.