Changes in / [19e8a2b:c5f7aa9] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rfb7c176 rbd7630d  
    352352 
    353353    # If it is a list of choices, pick one at random with equal probability 
     354    # In practice, the model specific random generator will override. 
    354355    par = model_info.parameters[name] 
    355     if par.choices:  # choice list 
    356         return np.random.randint(len(par.choices)) 
     356    if len(par.limits) > 2:  # choice list 
     357        return np.random.randint(len(par.limits)) 
    357358 
    358359    # If it is a fixed range, pick from it with equal probability. 
Note: See TracChangeset for help on using the changeset viewer.