Changeset c0131d44 in sasmodels
- Timestamp:
- Sep 6, 2018 11:44:24 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 84f2962
- Parents:
- 117c02a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/product.py
r117c02a rc0131d44 18 18 import numpy as np # type: ignore 19 19 20 from .modelinfo import ParameterTable, ModelInfo, Parameter 20 from .modelinfo import ParameterTable, ModelInfo, Parameter, parse_parameter 21 21 from .kernel import KernelModel, Kernel 22 22 from .details import make_details, dispersion_mesh … … 39 39 ER_ID = "radius_effective" 40 40 VF_ID = "volfraction" 41 BETA_DEFINITION = ("beta_mode", ["P*S", "P*(1+beta*(S-1))"], 0, (None, None), "", 42 "Structure factor dispersion calculation mode") 41 43 42 def make_extra_pars(p_info): 44 43 pars = [] 45 44 if p_info.have_Fq: 46 par = Parameter("structure_factor_mode", ["P*S","P*(1+beta*(S-1))"], 0, (None, None), "", 47 "Structure factor calculation") 45 par = parse_parameter( 46 "structure_factor_mode", 47 "", 48 0, 49 [["P*S","P*(1+beta*(S-1))"]], 50 "", 51 "Structure factor calculation") 48 52 pars.append(par) 49 53 return pars
Note: See TracChangeset
for help on using the changeset viewer.