Changeset d7b6913 in sasview for sanscalculator
- Timestamp:
- Jan 4, 2013 11:41:30 AM (12 years ago)
- 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
- Location:
- sanscalculator
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sanscalculator/src/sans/calculator/sans_gen.py
r077207b rd7b6913 55 55 self.params['scale'] = 1.0 56 56 self.params['background'] = 0.0 57 self.params['Up_frac_i '] = 0.558 self.params['Up_frac_ f'] = 0.557 self.params['Up_frac_in'] = 0.5 58 self.params['Up_frac_out'] = 0.5 59 59 self.params['Up_theta'] = 0.0 60 60 self.description='GenSAS' … … 63 63 self.details['scale'] = ['', None, None] 64 64 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] 67 67 self.details['Up_theta'] = ['[deg]', None, None] 68 68 # fixed parameters … … 78 78 """ 79 79 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 81 83 :return: function value 82 84 """ … … 85 87 model = mod.new_GenI(len_x, self.data_x, self.data_y, self.data_z, 86 88 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']) 89 92 mod.genicom(model, len_q, x, y, i) 90 93 return self.params['scale'] * i * self.volume \
Note: See TracChangeset
for help on using the changeset viewer.