Changes in / [d8e81f7:b39bf3b] in sasmodels


Ignore:
Location:
sasmodels
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    r9562dd2 r0b8a1fc  
    376376    # type: () -> None 
    377377    """Check that model load works""" 
    378     from .product import RADIUS_ID, VOLFRAC_ID, STRUCTURE_MODE_ID, RADIUS_MODE_ID 
    379378    #Test the the model produces the parameters that we would expect 
    380379    model = load_model("cylinder@hardsphere*sphere") 
    381380    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() 
    385385    assert target == actual, "%s != %s"%(target, actual) 
    386386 
  • sasmodels/direct_model.py

    rb39bf3b rb39bf3b  
    7676    R_eff_type = int(pars.pop(RADIUS_MODE_ID, 1.0)) 
    7777    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]) 
    7979    call_details, values, is_magnetic = make_kernel_args(calculator, mesh) 
    8080    #print("in call_Fq: values:", values) 
  • sasmodels/model_test.py

    rb39bf3b rb39bf3b  
    247247                                           platform=self.platform) 
    248248                    # run the tests 
    249 <<<<<<< HEAD 
    250249                    #self.info = ps_model.info 
    251250                    #print("SELF.INFO PARAMS!!!",[p.id for p in self.info.parameters.call_parameters]) 
    252251                    #print("PS MODEL PARAMETERS:",[p.id for p in ps_model.info.parameters.call_parameters]) 
    253 ======= 
    254 >>>>>>> 2ed7de04217c5103c5fd8d7c14e29e04923269d5 
    255252                    results.append(self.run_one(ps_model, ps_test)) 
    256253 
     
    397394    invalid = [] 
    398395    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 
    403397        if par == product.RADIUS_MODE_ID: 
     398            continue 
     399        if par == product.RADIUS_TYPE_ID: 
     400            continue 
     401        if par == product.STRUCTURE_MODE_ID: 
    404402            continue 
    405403        parts = par.split('_pd') 
  • sasmodels/product.py

    rb39bf3b rb39bf3b  
    3939STRUCTURE_MODE_ID = "structure_factor_mode" 
    4040RADIUS_MODE_ID = "radius_effective_mode" 
     41# rkh add this to pass to model_test 
     42RADIUS_TYPE_ID = "effective_radius_type" 
    4143RADIUS_ID = "radius_effective" 
    4244VOLFRAC_ID = "volfraction" 
Note: See TracChangeset for help on using the changeset viewer.