Changeset 9562dd2 in sasmodels
- Timestamp:
- Mar 28, 2019 11:11:44 AM (6 years ago)
- Branches:
- master, ticket-1257-vesicle-product, ticket_1156, ticket_822_more_unit_tests
- Children:
- f691fac
- Parents:
- f942f4d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
r0b8a1fc r9562dd2 376 376 # type: () -> None 377 377 """Check that model load works""" 378 from .product import RADIUS_ID, VOLFRAC_ID, STRUCTURE_MODE_ID, RADIUS_MODE_ID 378 379 #Test the the model produces the parameters that we would expect 379 380 model = load_model("cylinder@hardsphere*sphere") 380 381 actual = [p.name for p in model.info.parameters.kernel_parameters] 381 target = ("sld sld_solvent radius length theta phi" 382 " radius_effective volfraction " 383 " structure_factor_mode effective_radius_type" 384 " A_sld A_sld_solvent A_radius").split() 382 target = ["sld", "sld_solvent", "radius", "length", "theta", "phi", 383 RADIUS_ID, VOLFRAC_ID, STRUCTURE_MODE_ID, RADIUS_MODE_ID, 384 "A_sld", "A_sld_solvent", "A_radius"] 385 385 assert target == actual, "%s != %s"%(target, actual) 386 386
Note: See TracChangeset
for help on using the changeset viewer.