Changeset 5ef0633 in sasmodels
- Timestamp:
- Mar 9, 2015 2:32:53 PM (10 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:
- 485aee2
- Parents:
- 2e35a40
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extra/pylint.rc
r4840bec r5ef0633 137 137 138 138 # Regular expression matching correct constant names 139 const-rgx=(([A-Z _][A-Z0-9_]*)|(__.*__))$139 const-rgx=(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$ 140 140 141 141 # Naming hint for constant names -
sasmodels/models/barbell.py
r3c56da87 r5ef0633 117 117 description = """ 118 118 Calculates the scattering from a barbell-shaped cylinder. That is a sphereocylinder with spherical end caps that have a radius larger than that of the cylinder and the center of the end cap 119 120 121 119 radius lies outside of the cylinder. 120 Note: As the length of cylinder(bar) -->0,it becomes a dumbbell. And when rad_bar = rad_bell, it is a spherocylinder. 121 It must be that rad_bar <(=) rad_bell. 122 122 """ 123 123 category = "shape:cylinder" 124 124 125 parameters = [ 126 # [ "name", "units", default, [lower, upper], "type","description" ], 127 [ "sld", "1e-6/Ang^2", 4, [-inf,inf], "", "Barbell scattering length density" ], 128 [ "solvent_sld", "1e-6/Ang^2", 1, [-inf,inf], "","Solvent scattering length density" ], 129 [ "bell_radius", "Ang", 40, [0, inf], "volume","Spherical bell radius" ], 130 [ "radius", "Ang", 20, [0, inf], "volume","Cylindrical bar radius" ], 131 [ "length", "Ang", 400, [0, inf], "volume","Cylinder bar length" ], 132 [ "theta", "degrees", 60, [-inf, inf], "orientation","In plane angle" ], 133 [ "phi", "degrees", 60, [-inf, inf], "orientation","Out of plane angle" ], 134 ] 125 # ["name", "units", default, [lower, upper], "type","description"], 126 parameters = [["sld", "1e-6/Ang^2", 4, [-inf, inf], "", "Barbell scattering length density"], 127 ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"], 128 ["bell_radius", "Ang", 40, [0, inf], "volume", "Spherical bell radius"], 129 ["radius", "Ang", 20, [0, inf], "volume", "Cylindrical bar radius"], 130 ["length", "Ang", 400, [0, inf], "volume", "Cylinder bar length"], 131 ["theta", "degrees", 60, [-inf, inf], "orientation", "In plane angle"], 132 ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"], 133 ] 135 134 136 source = [ "lib/J1.c", "lib/gauss76.c", "barbell.c"]135 source = ["lib/J1.c", "lib/gauss76.c", "barbell.c"] 137 136 138 137 # parameters for demo 139 demo = dict( 140 scale=1, background=0, 141 sld=6, solvent_sld=1, 142 bell_radius = 40, radius=20, length=400, 143 theta=60, phi=60, 144 radius_pd=.2, radius_pd_n=5, 145 length_pd=.2,length_pd_n=5, 146 theta_pd=15, theta_pd_n=0, 147 phi_pd=15, phi_pd_n=0, 148 ) 138 demo = dict(scale=1, background=0, 139 sld=6, solvent_sld=1, 140 bell_radius=40, radius=20, length=400, 141 theta=60, phi=60, 142 radius_pd=.2, radius_pd_n=5, 143 length_pd=.2, length_pd_n=5, 144 theta_pd=15, theta_pd_n=0, 145 phi_pd=15, phi_pd_n=0, 146 ) 149 147 150 148 # For testing against the old sasview models, include the converted parameter 151 149 # names and the target sasview model name. 152 oldname ='BarBellModel'153 oldpars =dict(sld='sld_barbell',154 solvent_sld='sld_solv', bell_radius='rad_bell',155 radius='rad_bar',length='len_bar')150 oldname = 'BarBellModel' 151 oldpars = dict(sld='sld_barbell', 152 solvent_sld='sld_solv', bell_radius='rad_bell', 153 radius='rad_bar', length='len_bar')
Note: See TracChangeset
for help on using the changeset viewer.