Changeset fb7c176 in sasmodels
- Timestamp:
- Sep 19, 2018 12:05:44 PM (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:
- c11d09f
- Parents:
- db472a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
rbd7630d rfb7c176 352 352 353 353 # If it is a list of choices, pick one at random with equal probability 354 # In practice, the model specific random generator will override.355 354 par = model_info.parameters[name] 356 if len(par.limits) > 2: # choice list357 return np.random.randint(len(par. limits))355 if par.choices: # choice list 356 return np.random.randint(len(par.choices)) 358 357 359 358 # If it is a fixed range, pick from it with equal probability.
Note: See TracChangeset
for help on using the changeset viewer.