Changeset 5041682 in sasmodels


Ignore:
Timestamp:
Mar 16, 2016 12:22:48 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

fix gentoc for updated core functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/gentoc.py

    r9404dd3 r5041682  
    77from os import mkdir 
    88from os.path import basename, exists, join as joinpath 
    9 from sasmodels.core import load_model_definition 
     9from sasmodels.core import load_model_info 
    1010 
    1111 
     
    5555        model_name = basename(item)[:-3] 
    5656        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: 
    5959            print("Missing category for", item, file=sys.stderr) 
    6060        else: 
    61             category.setdefault(model_definition.category,[]).append(model_name) 
     61            category.setdefault(model_info['category'],[]).append(model_name) 
    6262 
    6363    # Check category names 
Note: See TracChangeset for help on using the changeset viewer.