Changeset 91c5fdc in sasmodels for sasmodels/generate.py


Ignore:
Timestamp:
Mar 16, 2016 10:07:28 AM (8 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:
3936ad3, 348557a
Parents:
7b3e62c
Message:

fix doc build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    rb8e5e21 r91c5fdc  
    754754    Iq_units = "The returned value is scaled to units of |cm^-1| |sr^-1|, absolute scale." 
    755755    Sq_units = "The returned value is a dimensionless structure factor, $S(q)$." 
    756     is_Sq = ("structure-factor" in model_info['category']) 
    757     #docs = kernel_module.__doc__ 
    758756    docs = convert_section_titles_to_boldface(model_info['docs']) 
    759757    subst = dict(id=model_info['id'].replace('_', '-'), 
     
    761759                 title=model_info['title'], 
    762760                 parameters=make_partable(model_info['parameters']), 
    763                  returns=Sq_units if is_Sq else Iq_units, 
     761                 returns=Sq_units if model_info['structure_factor'] else Iq_units, 
    764762                 docs=docs) 
    765763    return DOC_HEADER % subst 
Note: See TracChangeset for help on using the changeset viewer.