Changes in / [d8e81f7:b39bf3b] in sasmodels
- Location:
- sasmodels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
r9562dd2 r0b8a1fc 376 376 # type: () -> None 377 377 """Check that model load works""" 378 from .product import RADIUS_ID, VOLFRAC_ID, STRUCTURE_MODE_ID, RADIUS_MODE_ID379 378 #Test the the model produces the parameters that we would expect 380 379 model = load_model("cylinder@hardsphere*sphere") 381 380 actual = [p.name for p in model.info.parameters.kernel_parameters] 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"] 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() 385 385 assert target == actual, "%s != %s"%(target, actual) 386 386 -
sasmodels/direct_model.py
rb39bf3b rb39bf3b 76 76 R_eff_type = int(pars.pop(RADIUS_MODE_ID, 1.0)) 77 77 mesh = get_mesh(calculator.info, pars, dim=calculator.dim, mono=mono) 78 #print("in call_Fq: pars", list(zip(*mesh))[0])78 print("in call_Fq: pars", list(zip(*mesh))[0]) 79 79 call_details, values, is_magnetic = make_kernel_args(calculator, mesh) 80 80 #print("in call_Fq: values:", values) -
sasmodels/model_test.py
rb39bf3b rb39bf3b 247 247 platform=self.platform) 248 248 # run the tests 249 <<<<<<< HEAD250 249 #self.info = ps_model.info 251 250 #print("SELF.INFO PARAMS!!!",[p.id for p in self.info.parameters.call_parameters]) 252 251 #print("PS MODEL PARAMETERS:",[p.id for p in ps_model.info.parameters.call_parameters]) 253 =======254 >>>>>>> 2ed7de04217c5103c5fd8d7c14e29e04923269d5255 252 results.append(self.run_one(ps_model, ps_test)) 256 253 … … 397 394 invalid = [] 398 395 for par in sorted(pars.keys()): 399 # Ignore the R_eff mode parameter when checking for valid parameters. 400 # It is an allowed parameter for a model even though it does not exist 401 # in the parameter table. The call_Fq() function pops it from the 402 # parameter list and sends it directly to kernel.Fq(). 396 # special handling of R_eff mode, which is not a usual parameter 403 397 if par == product.RADIUS_MODE_ID: 398 continue 399 if par == product.RADIUS_TYPE_ID: 400 continue 401 if par == product.STRUCTURE_MODE_ID: 404 402 continue 405 403 parts = par.split('_pd') -
sasmodels/product.py
rb39bf3b rb39bf3b 39 39 STRUCTURE_MODE_ID = "structure_factor_mode" 40 40 RADIUS_MODE_ID = "radius_effective_mode" 41 # rkh add this to pass to model_test 42 RADIUS_TYPE_ID = "effective_radius_type" 41 43 RADIUS_ID = "radius_effective" 42 44 VOLFRAC_ID = "volfraction"
Note: See TracChangeset
for help on using the changeset viewer.