Changeset d2d6100 in sasmodels for sasmodels/core.py
- Timestamp:
- Jul 28, 2016 5:51:51 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 20317b3
- Parents:
- 7f1ee79
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
r0b03001 rd2d6100 62 62 Return the list of available models on the model path. 63 63 """ 64 KINDS = ("all", "py", "c", "double", " oriented", "magnetic")64 KINDS = ("all", "py", "c", "double", "single", "1d", "2d", "nonmagnetic", "magnetic") 65 65 if kind and kind not in KINDS: 66 66 raise ValueError("kind not in "+", ".join(KINDS)) … … 83 83 elif kind == "double" and not info.single: 84 84 return True 85 elif kind == "oriented" and any(p.type=='orientation' for p in pars): 85 elif kind == "single" and info.single: 86 return True 87 elif kind == "2d" and any(p.type=='orientation' for p in pars): 88 return True 89 elif kind == "1d" and any(p.type!='orientation' for p in pars): 86 90 return True 87 91 elif kind == "magnetic" and any(p.type=='sld' for p in pars): 92 return True 93 elif kind == "nonmagnetic" and any(p.type!='sld' for p in pars): 88 94 return True 89 95 return False
Note: See TracChangeset
for help on using the changeset viewer.