Changeset 5041682 in sasmodels for doc/gentoc.py
- Timestamp:
- Mar 16, 2016 12:22:48 PM (9 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:
- a98958b
- Parents:
- 348557a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/gentoc.py
r9404dd3 r5041682 7 7 from os import mkdir 8 8 from os.path import basename, exists, join as joinpath 9 from sasmodels.core import load_model_ definition9 from sasmodels.core import load_model_info 10 10 11 11 … … 55 55 model_name = basename(item)[:-3] 56 56 if model_name.startswith('_'): continue 57 model_ definition = load_model_definition(model_name)58 if not hasattr(model_definition, 'category'):57 model_info = load_model_info(model_name) 58 if model_info['category'] is None: 59 59 print("Missing category for", item, file=sys.stderr) 60 60 else: 61 category.setdefault(model_ definition.category,[]).append(model_name)61 category.setdefault(model_info['category'],[]).append(model_name) 62 62 63 63 # Check category names
Note: See TracChangeset
for help on using the changeset viewer.