Changeset ec45c4f in sasmodels
- Timestamp:
- Apr 4, 2016 6:45:36 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3a45c2c, cd0a808
- Parents:
- f247314
- Location:
- sasmodels
- Files:
-
- 74 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/convert.json
rf247314 rec45c4f 574 574 "pringle_sld": "sld_pringle" 575 575 } 576 ], 576 ], 577 "raspberry": [ 578 "RaspBerryModel", 579 { 580 "volfraction_lg": "volf_Lsph", 581 "volfraction_sm": "volf_Ssph", 582 "radius_sm": "radius_Ssph", 583 "radius_lg": "radius_Lsph", 584 "sld_lg": "sld_Lsph", 585 "sld_sm": "sld_Ssph", 586 "sld_solvent": "sld_solv", 587 "surface_fraction": "surfrac_Ssph", 588 "penetration": "delta_Ssph" 589 } 590 ], 577 591 "rectangular_prism": [ 578 592 "RectangularPrismModel", -
sasmodels/models/_spherepy.py
rd7028dc rec45c4f 117 117 radius=120, 118 118 radius_pd=.2, radius_pd_n=45) 119 oldname = "SphereModel"120 oldpars = dict(sld='sldSph', sld_solvent='sldSolv', radius='radius') -
sasmodels/models/adsorbed_layer.py
r1d4d409 rec45c4f 82 82 background = 0.0) 83 83 84 oldname = "Core2ndMomentModel"85 oldpars = dict(scale = 'scale',86 second_moment = 'second_moment',87 adsorbed_amount = 'ads_amount',88 density_shell = 'density_poly',89 radius = 'radius_core',90 volfraction = 'volf_cores',91 sld_shell = 'sld_poly',92 sld_solvent = 'sld_solv',93 background = 'background')94 95 84 # these unit test values taken from SasView 3.1.2 96 85 tests = [ -
sasmodels/models/barbell.py
r02a0920 rec45c4f 123 123 phi_pd=15, phi_pd_n=0, 124 124 ) 125 126 # For testing against the old sasview models, include the converted parameter127 # names and the target sasview model name.128 oldname = 'BarBellModel'129 oldpars = dict(sld='sld_barbell',130 sld_solvent='sld_solv', bell_radius='rad_bell',131 radius='rad_bar', length='len_bar') -
sasmodels/models/bcc_paracrystal.py
r02a0920 rec45c4f 137 137 psi_pd=15, psi_pd_n=0, 138 138 ) 139 140 # For testing against the old sasview models, include the converted parameter141 # names and the target sasview model name.142 oldname = 'BCCrystalModel'143 oldpars = dict(sld='sldSph', sld_solvent='sldSolv') -
sasmodels/models/be_polyelectrolyte.py
ra84a0ca rec45c4f 138 138 polymer_concentration=0.7) 139 139 140 oldname = "BEPolyelectrolyte"141 142 oldpars = dict(background='background',143 contrast_factor='k',144 bjerrum_length='lb',145 virial_param='h',146 monomer_length='b',147 salt_concentration='cs',148 ionization_degree='alpha',149 polymer_concentration='c')150 151 140 tests = [ 152 141 -
sasmodels/models/binary_hard_sphere.py
rd189429 rec45c4f 116 116 volfraction_lg=0.1, volfraction_sm=0.2) 117 117 118 # For testing against the old sasview models, include the converted parameter119 # names and the target sasview model name.120 oldname = 'BinaryHSModel'121 oldpars = dict(volfraction_lg='vol_frac_ls', volfraction_sm='vol_frac_ss',122 sld_lg='ls_sld', sld_sm='ss_sld', sld_solvent='solvent_sld',123 radius_lg='l_radius', radius_sm='s_radius')124 125 118 # NOTE: test results taken from values returned by SasView 3.1.2 126 119 tests = [[{}, 0.001, 25.8927262013]] -
sasmodels/models/broad_peak.py
raad336c rec45c4f 107 107 porod_scale=1.0e-05, porod_exp=3, 108 108 lorentz_scale=10, lorentz_length=50, peak_pos=0.1, lorentz_exp=2) 109 110 oldname = "BroadPeakModel"111 oldpars = dict(porod_scale='scale_p', porod_exp='exponent_p',112 lorentz_scale='scale_l', lorentz_length='length_l', peak_pos='q_peak',113 lorentz_exp='exponent_l', scale=None) -
sasmodels/models/capped_cylinder.py
raa24114 rec45c4f 140 140 theta_pd=15, theta_pd_n=45, 141 141 phi_pd=15, phi_pd_n=1) 142 oldname = 'CappedCylinderModel'143 oldpars = dict(sld='sld_capcyl',144 sld_solvent='sld_solv',145 length='len_cyl',146 radius='rad_cyl',147 cap_radius='rad_cap') -
sasmodels/models/core_multi_shell.py
r6f0e04f rec45c4f 194 194 sld_shell = [2.0], 195 195 thick_shell = [10]) 196 197 oldname = "CoreMultiShellModel"198 oldpars = dict(199 sld="sld_core0",200 radius="rad_core0",201 sld_solvent="sld_solv",202 n="n_shells",203 sld_shell="sld_in_shell",204 thick_shell="thick_shell",205 # func_shell is always 2 in the user interface, so isn't included206 ) -
sasmodels/models/core_shell_bicelle.py
raad336c rec45c4f 102 102 phi=0) 103 103 104 oldname = 'CoreShellBicelleModel'105 106 oldpars = dict(sld_core='core_sld', sld_face='face_sld', sld_rim='rim_sld',107 sld_solvent='solvent_sld', rim_thickness='rim_thick',108 face_thickness='face_thick',109 theta='axis_theta',110 phi='axis_phi')111 112 104 qx, qy = 0.4 * cos(90), 0.5 * sin(0) 113 105 tests = [ -
sasmodels/models/core_shell_cylinder.py
r43b7eea rec45c4f 158 158 theta_pd=15, theta_pd_n=45, 159 159 phi_pd=15, phi_pd_n=1) 160 oldname = 'CoreShellCylinderModel'161 oldpars = dict( sld_core='core_sld',162 sld_shell='shell_sld',163 sld_solvent='solvent_sld',164 theta='axis_theta', phi='axis_phi')165 160 # ADDED by: RKH ON: 18Mar2016 renamed sld's etc -
sasmodels/models/core_shell_ellipsoid.py
r27fade8 rec45c4f 137 137 phi=0) 138 138 139 oldname = 'CoreShellEllipsoidModel'140 141 oldpars = dict(equat_core='equat_core',polar_core='polar_core',equat_shell='equat_shell',polar_shell='polar_shell',142 sld_core='sld_core',143 sld_shell='sld_shell',144 sld_solvent='sld_solvent',145 theta='axis_theta',146 phi='axis_phi')147 148 139 q = 0.1 149 140 phi = pi/6 -
sasmodels/models/core_shell_ellipsoid_xt.py
r27fade8 rec45c4f 124 124 phi=0) 125 125 126 oldname = 'CoreShellEllipsoidXTModel'127 128 oldpars = dict(x_polar_shell='XpolarShell',129 x_core='X_core',130 t_shell='T_shell',131 sld_core='sld_core',132 sld_shell='sld_shell',133 sld_solvent='sld_solvent',134 theta='axis_theta',135 phi='axis_phi')136 137 126 q = 0.1 138 127 phi = pi/6 -
sasmodels/models/core_shell_parallelepiped.py
raad336c rec45c4f 176 176 psi_pd=10, psi_pd_n=10) 177 177 178 179 # For testing against the old sasview models, include the converted parameter180 # names and the target sasview model name.181 oldname = 'CSParallelepipedModel'182 oldpars = dict(theta='parallel_theta', phi='parallel_phi', psi='parallel_psi',183 sld_core='sld_pcore', sld_a='sld_rimA', sld_b='sld_rimB',184 sld_c='sld_rimC', sld_solvent='sld_solv',185 a_side='shortA', b_side='midB', c_side='longC',186 arim_thickness='rimA', brim_thickness='rimB', crim_thickness='rimC')187 188 178 qx, qy = 0.2 * np.cos(2.5), 0.2 * np.sin(2.5) 189 179 tests = [[{}, 0.2, 0.533149288477], -
sasmodels/models/core_shell_sphere.py
r3c6d5bc rec45c4f 74 74 sld_core=1.0, sld_shell=2.0, sld_solvent=0.0) 75 75 76 oldname = 'CoreShellModel'77 oldpars = dict( sld_core='core_sld',78 sld_shell='shell_sld',79 sld_solvent='solvent_sld')80 81 76 def ER(radius, thickness): 82 77 """ -
sasmodels/models/correlation_length.py
r0cc31e1 rec45c4f 75 75 ) 76 76 77 # For testing against the old sasview models, include the converted parameter78 # names and the target sasview model name.79 oldname = 'CorrLengthModel'80 81 oldpars = dict(lorentz_scale='scale_l', porod_scale='scale_p',82 cor_length='length_l', exponent_p='exponent_p',83 exponent_l='exponent_l')84 85 77 tests = [[{}, 0.001, 1009.98], 86 78 [{}, 0.150141, 0.175645], -
sasmodels/models/dab.py
raa2edb2 rec45c4f 76 76 77 77 demo = dict(scale=1, background=0, length=50) 78 oldname = "DABModel"79 oldpars = dict(length='length') -
sasmodels/models/ellipsoid.py
r3556ad7 rec45c4f 165 165 theta_pd=15, theta_pd_n=45, 166 166 phi_pd=15, phi_pd_n=1) 167 oldname = 'EllipsoidModel'168 oldpars = dict(theta='axis_theta', phi='axis_phi',169 sld='sldEll', sld_solvent='sldSolv',170 r_polar='radius_a', r_equatorial='radius_b') -
sasmodels/models/elliptical_cylinder.py
r0cc31e1 rec45c4f 110 110 sld=4.0, sld_solvent=1.0, theta=10.0, phi=20, psi=30, theta_pd=10, phi_pd=2, psi_pd=3) 111 111 112 oldname = 'EllipticalCylinderModel'113 oldpars = dict(axis_ratio="r_ratio",theta='cyl_theta', phi='cyl_phi', psi='cyl_psi', sld='sldCyl', sld_solvent='sldSolv')114 115 112 def ER(r_minor, axis_ratio, length): 116 113 """ -
sasmodels/models/fcc_paracrystal.py
r02a0920 rec45c4f 128 128 psi_pd=15, psi_pd_n=0, 129 129 ) 130 131 # For testing against the old sasview models, include the converted parameter132 # names and the target sasview model name.133 oldname = 'FCCrystalModel'134 oldpars = dict(sld='sldSph', sld_solvent='sldSolv') -
sasmodels/models/flexible_cylinder.py
rce8bed9 rec45c4f 93 93 sld_solvent=6.3) 94 94 95 oldname = 'FlexibleCylinderModel'96 oldpars = dict(sld='sldCyl', sld_solvent='sldSolv')97 98 99 95 tests = [ 100 96 # Accuracy tests based on content in test/utest_other_models.py -
sasmodels/models/flexible_cylinder_elliptical.py
r65bf704 rec45c4f 119 119 sld_solvent=6.3) 120 120 121 oldname = 'FlexCylEllipXModel'122 oldpars = dict(sld='sldCyl', sld_solvent='sldSolv')123 124 125 121 tests = [ 126 122 # Accuracy tests based on content in test/utest_other_models.py -
sasmodels/models/fractal.py
r5e29b9d rec45c4f 103 103 sld_solvent=6.4) 104 104 105 # For testing against the old sasview models, include the converted parameter106 # names and the target sasview model name.107 oldname = 'FractalModel'108 oldpars = dict(radius='radius',109 fractal_dim='fractal_dim',110 cor_length='cor_length',111 sld_block='sldBlock',112 sld_solvent='sldSolv')113 114 105 # NOTE: test results taken from values returned by SasView 3.1.2 115 106 tests = [ -
sasmodels/models/fractal_core_shell.py
raad336c rec45c4f 86 86 cor_length=100.0) 87 87 88 oldname = 'FractalCoreShellModel'89 oldpars = dict( sld_core='core_sld',90 sld_shell='shell_sld',91 sld_solvent='solvent_sld')92 93 88 def ER(radius, thickness): 94 89 """ -
sasmodels/models/fuzzy_sphere.py
rd7028dc rec45c4f 120 120 fuzziness_pd=.2, fuzziness_pd_n=0) 121 121 122 oldname = "FuzzySphereModel"123 oldpars = dict(sld='sldSph', sld_solvent='sldSolv', radius='radius', fuzziness='fuzziness')124 125 126 122 tests = [ 127 123 # Accuracy tests based on content in test/utest_models_new1_3.py -
sasmodels/models/gauss_lorentz_gel.py
rb8954d7 rec45c4f 113 113 dynamic_cor_length=20.0) 114 114 115 oldname = "GaussLorentzGelModel"116 117 oldpars = dict(background='background',118 gauss_scale_factor='scale_g',119 static_cor_length='stat_colength',120 lorentz_scale_factor='scale_l',121 dynamic_cor_length='dyn_colength')122 123 115 tests = [ 124 116 -
sasmodels/models/gaussian_peak.py
raa2edb2 rec45c4f 67 67 68 68 demo = dict(scale=1, background=0, q0=0.05, sigma=0.005) 69 oldname = "PeakGaussModel"70 oldpars = dict(sigma='B') -
sasmodels/models/gel_fit.py
rb8954d7 rec45c4f 78 78 cor_length=16.0) 79 79 80 oldname = 'GelFitModel'81 oldpars = dict(guinier_scale='gScale',82 lorentzian_scale='lScale',83 gyration_radius='radius',84 fractal_exp='FractalExp',85 cor_length='zeta')86 87 80 tests = [[{'guinier_scale': 1.0, 88 81 'lorentzian_scale': 1.0, -
sasmodels/models/guinier.py
r45330ed rec45c4f 53 53 demo = dict(scale=1.0, rg=60.0) 54 54 55 # For testing against the old sasview models, include the converted parameter56 # names and the target sasview model name.57 oldname = 'GuinierModel'58 oldpars = dict(rg='rg')59 60 55 # parameters for unit tests 61 56 tests = [[{'rg' : 31.5}, 0.005, 0.992756]] -
sasmodels/models/guinier_porod.py
r45330ed rec45c4f 123 123 demo = dict(scale=1.5, background=0.5, rg=60, s=1.0, m=3.0) 124 124 125 oldname = "GuinierPorodModel"126 oldpars = dict(scale='scale', background='background', s='dim', m='m', rg='rg')127 128 125 tests = [[{'scale': 1.5, 'background':0.5}, 0.04, 5.290096890253155]] -
sasmodels/models/hardsphere.py
r934f906 rec45c4f 158 158 159 159 demo = dict(radius_effective=200, volfraction=0.2, radius_effective_pd=0.1, radius_effective_pd_n=40) 160 oldname = 'HardsphereStructure'161 oldpars = dict(radius_effective="effect_radius",radius_effective_pd="effect_radius_pd",radius_effective_pd_n="effect_radius_pd_n")162 160 # Q=0.001 is in the Taylor series, low Q part, so add Q=0.1, assuming double precision sasview is correct 163 161 tests = [ -
sasmodels/models/hayter_msa.py
ra3e0a8b rec45c4f 94 94 # VR defaults to 1.0 95 95 96 oldname = 'HayterMSAStructure'97 #oldpars = dict(effect_radius="radius_effective",effect_radius_pd="radius_effective_pd",effect_radius_pd_n="radius_effective_pd_n")98 oldpars = dict(radius_effective="effect_radius",radius_effective_pd="effect_radius_pd",radius_effective_pd_n="effect_radius_pd_n",salt_concentration="saltconc")99 #oldpars = dict( )100 96 # default parameter set, use compare.sh -midQ -linear 101 97 # note the calculation varies in different limiting cases so a wide range of -
sasmodels/models/hollow_cylinder.py
r43b7eea rec45c4f 120 120 ) 121 121 122 # For testing against the old sasview models, include the converted parameter123 # names and the target sasview model name.124 oldname = 'HollowCylinderModel'125 oldpars = dict(scale='scale', background='background', radius='radius',126 core_radius='core_radius', sld='sldCyl', length='length',127 sld_solvent='sldSolv', phi='axis_phi', theta='axis_theta')128 129 122 # Parameters for unit tests 130 123 tests = [ -
sasmodels/models/hollow_rectangular_prism.py
r3d8283b rec45c4f 154 154 c2a_ratio_pd=0.1, c2a_ratio_pd_n=1) 155 155 156 # For testing against the old sasview models, include the converted parameter157 # names and the target sasview model name.158 oldname = 'RectangularHollowPrismModel'159 oldpars = dict(a_side='short_side', b2a_ratio='b2a_ratio', c_side='c2a_ratio',160 thickness='thickness', sld='sldPipe', sld_solvent='sldSolv')161 162 156 tests = [[{}, 0.2, 0.76687283098], 163 157 [{}, [0.2], [0.76687283098]], -
sasmodels/models/hollow_rectangular_prism_thin_walls.py
r3d8283b rec45c4f 133 133 c2a_ratio_pd=0.1, c2a_ratio_pd_n=1) 134 134 135 # For testing against the old sasview models, include the converted parameter136 # names and the target sasview model name.137 oldname = 'RectangularHollowPrismInfThinWallsModel'138 oldpars = dict(a_side='short_side', b2a_ratio='b2a_ratio', c_side='c2a_ratio',139 sld='sldPipe', sld_solvent='sldSolv')140 141 135 tests = [[{}, 0.2, 0.837719188592], 142 136 [{}, [0.2], [0.837719188592]], -
sasmodels/models/lamellar.py
r7c391dd rec45c4f 93 93 thickness=40, 94 94 thickness_pd=0.2, thickness_pd_n=40) 95 oldname = 'LamellarModel'96 oldpars = dict(sld='sld_bi', sld_solvent='sld_sol', thickness='bi_thick')97 95 tests = [ 98 96 [ {'scale': 1.0, 'background' : 0.0, 'thickness' : 50.0, 'sld' : 1.0,'sld_solvent' : 6.3, 'thickness_pd' : 0.0, -
sasmodels/models/lamellar_hg.py
r52a3db3 rec45c4f 114 114 head_length_pd=0.01, head_length_pd_n=40) 115 115 116 oldname = 'LamellarFFHGModel'117 oldpars = dict(head_length='h_thickness', tail_length='t_length',118 sld='sld_tail', sld_head='sld_head', sld_solvent='sld_solvent')119 116 # 120 117 tests = [[{'scale': 1.0, 'background': 0.0, 'tail_length': 15.0, 'head_length': 10.0, -
sasmodels/models/lamellar_hg_stack_caille.py
r6ab4ed8 rec45c4f 138 138 ) 139 139 140 oldname = 'LamellarPSHGModel'141 142 oldpars = dict(143 tail_length='deltaT', head_length='deltaH', Nlayers='n_plates',144 Caille_parameter='caille', sld='sld_tail', sld_head='sld_head',145 sld_solvent='sld_solvent')146 140 # 147 141 tests = [[{'scale': 1.0, 'background': 0.0, 'tail_length': 10.0, 'head_length': 2.0, -
sasmodels/models/lamellar_stack_caille.py
r6ab4ed8 rec45c4f 117 117 spacing_pd=0.05, spacing_pd_n=40) 118 118 119 oldname = 'LamellarPSModel'120 oldpars = dict(thickness='delta', Nlayers='N_plates',121 Caille_parameter='caille',122 sld='sld_bi', sld_solvent='sld_sol')123 119 # 124 120 tests = [ -
sasmodels/models/lamellar_stack_paracrystal.py
r6ab4ed8 rec45c4f 144 144 thickness_pd=0.2, thickness_pd_n=40) 145 145 146 oldname = 'LamellarPCrystalModel'147 oldpars = dict(spacing_polydisp='pd_spacing', sld='sld_layer',148 sld_solvent='sld_solvent')149 146 # 150 147 tests = [ -
sasmodels/models/line.py
ra84a0ca rec45c4f 73 73 demo = dict(scale=1.0, background=0, intercept=1.0, slope=1.0) 74 74 75 oldname = "LineModel"76 oldpars = dict(intercept='A', slope='B', background=None, scale=None)77 78 75 tests = [ 79 76 -
sasmodels/models/linear_pearls.py
ra2f9aa2 rec45c4f 71 71 sld_solvent=6.3) 72 72 73 oldname = "LinearPearlsModel"74 75 oldpars = dict(edge_sep='edge_separation',76 sld='sld_pearl',77 sld_solvent='sld_solv')78 79 73 """ 80 74 Tests temporarily disabled, until single-double precision accuracy issue solved. -
sasmodels/models/lorentz.py
raa2edb2 rec45c4f 55 55 demo = dict(scale=1.0, background=0.0, cor_length=50.0) 56 56 57 # For testing against the old sasview models, include the converted parameter58 # names and the target sasview model name.59 oldname = 'LorentzModel'60 oldpars = dict(cor_length='length')61 62 57 # parameters for unit tests 63 58 tests = [[{'cor_length': 250}, 0.01, 0.138931]] -
sasmodels/models/mass_fractal.py
r95441ff rec45c4f 92 92 cutoff_length=100.0) 93 93 94 oldname = 'MassFractalModel'95 oldpars = dict(radius='radius',96 mass_dim='mass_dim',97 cutoff_length='co_length')98 99 94 tests = [ 100 95 -
sasmodels/models/mass_surface_fractal.py
r95441ff rec45c4f 98 98 primary_rg=4000.0) 99 99 100 oldname = 'MassSurfaceFractal'101 oldpars = dict(radius='radius',102 mass_dim='mass_dim',103 surface_dim='surface_dim',104 cluster_rg='cluster_rg',105 primary_rg='primary_rg')106 107 100 tests = [ 108 101 -
sasmodels/models/mono_gauss_coil.py
r6b4f7f6 rec45c4f 81 81 background = 0.0) 82 82 83 oldname = "DebyeModel"84 oldpars = dict(scale = 'scale',85 radius_gyration = 'rg',86 background = 'background')87 88 83 # these unit test values taken from SasView 3.1.2 89 84 tests = [ -
sasmodels/models/multilayer_vesicle.py
rd7028dc rec45c4f 95 95 n_pairs=2.0) 96 96 97 oldname = 'MultiShellModel'98 oldpars = dict(radius='core_radius',99 thick_shell='s_thickness', thick_solvent='w_thickness',100 sld_solvent='core_sld', sld='shell_sld')101 102 97 tests = [ 103 98 # Accuracy tests based on content in test/utest_other_models.py -
sasmodels/models/onion.py
rb0696e1 rec45c4f 385 385 # "A[1]": 0, "A[2]": -1, "A[3]": 1e-4, "A[4]": 1, 386 386 } 387 388 oldname = "OnionExpShellModel"389 oldpars = dict(390 core_sld="sld_core0",391 core_radius="rad_core0",392 solvent_sld="sld_solv",393 n="n_shells",394 in_sld="sld_in_shell",395 out_sld="sld_out_shell",396 A="A_shell",397 thickness="thick_shell",398 # func_shell is always 2 in the user interface, so isn't included399 ) -
sasmodels/models/parallelepiped.py
r76e5041 rec45c4f 222 222 psi_pd=10, psi_pd_n=10) 223 223 224 # For testing against the old sasview models, include the converted parameter225 # names and the target sasview model name.226 oldname = 'ParallelepipedModel'227 oldpars = dict(theta='parallel_theta', phi='parallel_phi', psi='parallel_psi',228 a_side='short_a', b_side='short_b', c_side='long_c',229 sld='sldPipe', sld_solvent='sldSolv')230 231 232 224 qx, qy = 0.2 * np.cos(2.5), 0.2 * np.sin(2.5) 233 225 tests = [[{}, 0.2, 0.17758004974], -
sasmodels/models/peak_lorentz.py
raa2edb2 rec45c4f 70 70 peak_pos=0.05, peak_hwhm=0.005) 71 71 72 oldname = "PeakLorentzModel"73 oldpars = dict(peak_pos='q0', peak_hwhm='B')74 75 72 tests = [[{'scale':100.0, 'background':1.0}, 0.001, 2.0305]] -
sasmodels/models/pearl_necklace.py
ra2f9aa2 rec45c4f 125 125 ) 126 126 127 # For testing against the old sasview models, include the converted parameter128 # names and the target sasview model name.129 oldname = 'PearlNecklaceModel'130 oldpars = dict(scale='scale', background='background', radius='radius',131 number_of_pearls='num_pearls', sld_solvent='sld_solv',132 string_thickness='thick_string', sld='sld_pearl',133 sld_string='sld_string', edge_separation='edge_separation')134 135 127 tests = [[{}, 0.001, 17380.245], [{}, 'ER', 115.39502]] -
sasmodels/models/poly_gauss_coil.py
r09b84ed rec45c4f 94 94 background = 0.0) 95 95 96 oldname = "Poly_GaussCoil"97 oldpars = dict(scale = 'scale',98 radius_gyration = 'rg',99 polydispersity = 'poly_m',100 background = 'background')101 102 96 # these unit test values taken from SasView 3.1.2 103 97 tests = [ -
sasmodels/models/polymer_excl_volume.py
rbf59527 rec45c4f 154 154 porod_exp=3.0) 155 155 156 oldname = "PolymerExclVolume"157 oldpars = dict(background='background', scale='scale',158 rg='rg',159 porod_exp='m')160 161 156 tests = [ 162 157 # Accuracy tests based on content in test/polyexclvol_default_igor.txt -
sasmodels/models/polymer_micelle.py
r1e9a108 rec45c4f 66 66 67 67 68 oldname = 'MicelleSphCoreModel'69 oldpars = dict(sld_solvent='rho_solv',70 sld_core='rho_core',71 sld_corona='rho_corona')72 73 68 tests = [ 74 69 [{}, 0.01, 15.3532], -
sasmodels/models/porod.py
r2f63032 rec45c4f 58 58 demo = dict(scale=1.5, background=0.5) 59 59 60 oldname = "PorodModel"61 oldpars = dict(scale='scale', background='background')62 63 60 tests = [[{'scale': 0.00001, 'background':0.01}, 0.04, 3.916250]] -
sasmodels/models/power_law.py
raa2edb2 rec45c4f 58 58 background=0.0) 59 59 60 oldname = "PowerLawAbsModel"61 oldpars = dict(scale='scale',62 power='m',63 background='background')64 65 60 tests = [ 66 61 [{'scale': 1.0, 'power': 4.0, 'background' : 0.0}, -
sasmodels/models/pringle.py
r693570c rec45c4f 93 93 sld_solvent=6.35) 94 94 95 oldname = 'PringlesModel'96 oldpars = dict(background='background',97 scale='scale',98 radius='radius',99 thickness='thickness',100 alpha='alpha',101 beta='beta',102 pringle_sld='sld_pringle',103 solvent_sld='sld_solvent')104 105 95 tests = [ 106 96 [{'scale' : 1.0, -
sasmodels/models/raspberry.py
r204fd9b rec45c4f 161 161 radius_lg_pd=.2, radius_lg_pd_n=10) 162 162 163 # For testing against the old sasview models, include the converted parameter164 # names and the target sasview model name.165 166 163 # TODO: update tests so the parameters correspond to SasView parameters 167 164 # The model was re-parameterized so the results have changed. -
sasmodels/models/rectangular_prism.py
r76e5041 rec45c4f 131 131 c2a_ratio_pd=0.1, c2a_ratio_pd_n=1) 132 132 133 # For testing against the old sasview models, include the converted parameter134 # names and the target sasview model name.135 oldname = 'RectangularPrismModel'136 oldpars = dict(a_side='short_side', b2a_ratio='b2a_ratio', c_side='c2a_ratio',137 sld='sldPipe', sld_solvent='sldSolv')138 139 133 tests = [[{}, 0.2, 0.375248406825], 140 134 [{}, [0.2], [0.375248406825]], -
sasmodels/models/rpa.py
raad336c rec45c4f 136 136 return HIDE_NONE 137 137 138 oldname = 'RPAModel'139 oldpars = dict(140 case_num="lcase_n",141 ) -
sasmodels/models/sc_paracrystal.py
r02a0920 rec45c4f 145 145 psi=0.0) 146 146 147 oldname = 'SCCrystalModel'148 149 oldpars = dict(sld='sldSph',150 sld_solvent='sldSolv')151 152 147 tests = [ 153 148 # Accuracy tests based on content in test/utest_extra_models.py -
sasmodels/models/sphere.py
r364d8f7 rec45c4f 96 96 radius=120, 97 97 radius_pd=.2, radius_pd_n=45) 98 oldname = "SphereModel"99 oldpars = dict(sld='sldSph', sld_solvent='sldSolv', radius='radius') -
sasmodels/models/spherical_sld.py
r6f0e04f rec45c4f 197 197 background=0.0, 198 198 npts_inter=35.0, 199 )200 201 oldname = "SphereSLDModel"202 oldpars = dict(203 #scale="scale",204 #background='background',205 #n_shells="n_shells",206 radius_core='rad_core',207 #sld_core='sld_core',208 #sld_flat='sld_flat',209 #thick_flat='thick_flat',210 #func_inter='func_inter',211 #thick_inter='thick_inter',212 #inter_nu='nu_inter',213 #npts_inter='npts_inter',214 sld_solvent='sld_solv',215 199 ) 216 200 -
sasmodels/models/squarewell.py
rb812972 rec45c4f 130 130 # VR defaults to 1.0 131 131 132 oldname = 'SquareWellStructure'133 oldpars = dict(radius_effective="effect_radius",radius_effective_pd="effect_radius_pd",radius_effective_pd_n="effect_radius_pd_n")134 132 demo = dict(radius_effective=50, volfraction=0.04, welldepth=1.5, 135 133 wellwidth=1.2, radius_effective_pd=0, radius_effective_pd_n=0) -
sasmodels/models/stacked_disks.py
r53215cf rec45c4f 155 155 phi=0) 156 156 157 158 oldname = 'StackedDisksModel'159 160 oldpars = dict(sld_core='core_sld',sld_layer='layer_sld',sld_solvent='solvent_sld',n_stacking='n_stacking',theta='axis_theta',161 phi='axis_phi')162 163 157 tests = [ 164 158 # Accuracy tests based on content in test/utest_extra_models.py. -
sasmodels/models/star_polymer.py
r6b4f7f6 rec45c4f 69 69 arms=3.0) 70 70 71 oldname = 'StarPolymer'72 73 oldpars = dict(rg_squared='R2',74 arms='arms')75 76 71 tests = [[{'rg_squared': 2.0, 77 72 'arms': 3.3, -
sasmodels/models/stickyhardsphere.py
r54954e1 rec45c4f 178 178 # VR defaults to 1.0 179 179 180 oldname = 'StickyHSStructure'181 oldpars = dict(radius_effective="effect_radius",radius_effective_pd="effect_radius_pd",radius_effective_pd_n="effect_radius_pd_n")182 180 demo = dict(radius_effective=200, volfraction=0.2, perturb=0.05, 183 181 stickiness=0.2, radius_effective_pd=0.1, radius_effective_pd_n=40) -
sasmodels/models/surface_fractal.py
r95441ff rec45c4f 92 92 radius=10, surface_dim=2.0, cutoff_length=500) 93 93 94 oldname = 'SurfaceFractalModel'95 oldpars = dict(radius='radius',96 surface_dim='surface_dim',97 cutoff_length='co_length')98 99 94 tests = [ 100 95 # Accuracy tests based on content in test/utest_other_models.py -
sasmodels/models/teubner_strey.py
raa2edb2 rec45c4f 84 84 85 85 demo = dict(scale=1, background=0, a2=0.1, c1=-30.0, c2=5000.0) 86 oldname = "TeubnerStreyModel"87 oldpars = dict(a2='scale')88 89 86 tests = [[{}, 0.2, 0.145927536232]] -
sasmodels/models/triaxial_ellipsoid.py
r49da079 rec45c4f 124 124 phi_pd=15, phi_pd_n=1, 125 125 psi_pd=15, psi_pd_n=1) 126 oldname = 'TriaxialEllipsoidModel'127 oldpars = dict(theta='axis_theta', phi='axis_phi', psi='axis_psi',128 sld='sldEll', solvent_sld='sldSolv',129 req_minor='semi_axisA', req_major='semi_axisB',130 rpolar='semi_axisC') -
sasmodels/models/two_lorentzian.py
rcaa7b4a rec45c4f 116 116 lorentz_exp_2=2.0) 117 117 118 oldname = "TwoLorentzianModel"119 oldpars = dict(background='background',120 lorentz_scale_1='scale_1',121 lorentz_scale_2='scale_2',122 lorentz_length_1='length_1',123 lorentz_length_2='length_2',124 lorentz_exp_1='exponent_1',125 lorentz_exp_2='exponent_2')126 127 118 tests = [ 128 119 -
sasmodels/models/two_power_law.py
rc6652bb rec45c4f 123 123 power_2=4.0) 124 124 125 oldname = "TwoPowerLawModel"126 oldpars = dict(coefficent_1='coef_A',127 crossover='qc',128 power_1='power1',129 power_2='power2',130 background='background')131 132 125 tests = [ 133 126 # Accuracy tests based on content in test/utest_extra_models.py -
sasmodels/models/vesicle.py
r062db5a rec45c4f 128 128 thickness_pd=.2, thickness_pd_n=10) 129 129 130 # For testing against the old sasview models, include the converted parameter131 # names and the target sasview model name.132 oldname = 'VesicleModel'133 oldpars = dict(sld='shell_sld', sld_solvent='solv_sld')134 135 136 130 # NOTE: test results taken from values returned by SasView 3.1.2, with 137 131 # 0.001 added for a non-zero default background.
Note: See TracChangeset
for help on using the changeset viewer.