Changes in / [3d8283b:f8da3f3] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/spherical_sld.py
r8ad9619 r669bf21 170 170 # pylint: disable=bad-whitespace, line-too-long 171 171 # ["name", "units", default, [lower, upper], "type", "description"], 172 parameters = [["n_shells", "", 1, [0, 9], "", "number of shells"], 173 ["thick_inter_0", "Ang", 50, [-inf, inf], "", "intern layer thickness"], 174 ["func_inter_0", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 175 ["core0_sld", "1e-6/Ang^2", 2.07, [-inf, inf], "", "sld function flat"], 176 ["solvent_sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "sld function solvent"], 177 ["flat1_sld", "1e-6/Ang^2", 4.06, [-inf, inf], "", "sld function flat"], 178 ["flat2_sld", "1e-6/Ang^2", 3.5, [-inf, inf], "", "sld function flat"], 179 ["flat3_sld", "1e-6/Ang^2", 4.06, [-inf, inf], "", "sld function flat"], 180 ["flat4_sld", "1e-6/Ang^2", 3.5, [-inf, inf], "", "sld function flat"], 181 ["flat5_sld", "1e-6/Ang^2", 4.06, [-inf, inf], "", "sld function flat"], 182 ["flat6_sld", "1e-6/Ang^2", 3.5, [-inf, inf], "", "sld function flat"], 183 ["flat7_sld", "1e-6/Ang^2", 4.06, [-inf, inf], "", "sld function flat"], 184 ["flat8_sld", "1e-6/Ang^2", 3.5, [-inf, inf], "", "sld function flat"], 185 ["flat9_sld", "1e-6/Ang^2", 4.06, [-inf, inf], "", "sld function flat"], 186 ["flat10_sld", "1e-6/Ang^2", 3.5, [-inf, inf], "", "sld function flat"], 187 ["thick_inter_1", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 188 ["thick_inter_2", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 189 ["thick_inter_3", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 190 ["thick_inter_4", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 191 ["thick_inter_5", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 192 ["thick_inter_6", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 193 ["thick_inter_7", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 194 ["thick_inter_8", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 195 ["thick_inter_9", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 196 ["thick_inter_10", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 197 ["thick_flat_1", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 198 ["thick_flat_2", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 199 ["thick_flat_3", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 200 ["thick_flat_4", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 201 ["thick_flat_5", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 202 ["thick_flat_6", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 203 ["thick_flat_7", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 204 ["thick_flat_8", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 205 ["thick_flat_9", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 206 ["thick_flat_10", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 207 ["func_inter_1", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 208 ["func_inter_2", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 209 ["func_inter_3", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 210 ["func_inter_4", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 211 ["func_inter_5", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 212 ["func_inter_6", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 213 ["func_inter_7", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 214 ["func_inter_8", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 215 ["func_inter_9", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 216 ["func_inter_10", "", 0, [0, 4], "", "'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4"], 217 ["nu_inter_1", "", 2.5, [-inf, inf], "", "steepness parameter"], 218 ["nu_inter_2", "", 2.5, [-inf, inf], "", "steepness parameter"], 219 ["nu_inter_3", "", 2.5, [-inf, inf], "", "steepness parameter"], 220 ["nu_inter_4", "", 2.5, [-inf, inf], "", "steepness parameter"], 221 ["nu_inter_5", "", 2.5, [-inf, inf], "", "steepness parameter"], 222 ["nu_inter_6", "", 2.5, [-inf, inf], "", "steepness parameter"], 223 ["nu_inter_7", "", 2.5, [-inf, inf], "", "steepness parameter"], 224 ["nu_inter_8", "", 2.5, [-inf, inf], "", "steepness parameter"], 225 ["nu_inter_9", "", 2.5, [-inf, inf], "", "steepness parameter"], 226 ["nu_inter_10", "", 2.5, [-inf, inf], "", "steepness parameter"], 227 ["npts_inter", "", 35, [0, 35], "", "number of points in each sublayer Must be odd number"], 228 ["nu_inter_0", "", 2.5, [-inf, inf], "", "steepness parameter"], 229 ["rad_core_0", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 172 parameters = [["n_shells", "", 1, [0, 9], "", "number of shells"], 173 ["thick_inter[n]", "Ang", 50, [-inf, inf], "", "intern layer thickness"], 174 ["func_inter[n]", "", 0, [0, 4], "", "Erf:0, RPower:1, LPower:2, RExp:3, LExp:4"], 175 ["sld_core", "1e-6/Ang^2", 2.07, [-inf, inf], "", "sld function flat"], 176 ["sld_solvent", "1e-6/Ang^2", 1.0, [-inf, inf], "", "sld function solvent"], 177 ["sld_flat[n]", "1e-6/Ang^2", 4.06, [-inf, inf], "", "sld function flat"], 178 ["thick_inter[n]", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 179 ["thick_flat[n]", "Ang", 100.0, [0, inf], "", "flat layer_thickness"], 180 ["inter_nu[n]", "", 2.5, [-inf, inf], "", "steepness parameter"], 181 ["npts_inter", "", 35, [0, 35], "", "number of points in each sublayer Must be odd number"], 182 ["core_rad", "Ang", 50.0, [0, inf], "", "intern layer thickness"], 230 183 ] 231 184 # pylint: enable=bad-whitespace, line-too-long 232 185 #source = ["lib/librefl.c", "lib/sph_j1c.c", "spherical_sld.c"] 233 186 234 Iq = """ 235 return q; 236 """ 237 238 Iqxy = """ 239 // never called since no orientation or magnetic parameters. 240 //return -1.0; 241 """ 187 def Iq(q, *args, **kw): 188 return q 189 190 def Iqxy(qx, *args, **kw): 191 return qx 192 242 193 243 194 demo = dict(
Note: See TracChangeset
for help on using the changeset viewer.