Changeset 001d9f5 in sasmodels


Ignore:
Timestamp:
May 27, 2016 10:08:54 AM (6 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:
197e41d
Parents:
aa343d6
Message:

remove '#line 0' problem from bundled build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    ra7a5ff3 r001d9f5  
    717717 
    718718    # Make sure we have harmless default values 
    719     model_info['Iqxy_line'] = 0 
    720     model_info['Iq_line'] = 0 
    721     model_info['form_volume_line'] = 0 
     719    # NB: 0 is not harmless---some compilers break with a "#line 0" directive 
     720    model_info['Iqxy_line'] = 1 
     721    model_info['Iq_line'] = 1 
     722    model_info['form_volume_line'] = 1 
    722723 
    723724    # find the defintion lines for the different code blocks 
     
    856857 
    857858 
     859def make_html(model_info): 
     860    """ 
     861    Convert model docs directly to html. 
     862    """ 
     863    from . import rst2html 
     864    return rst2html.convert(make_doc(model_info), title=model_info['name']) 
     865 
    858866def demo_time(): 
    859867    """ 
Note: See TracChangeset for help on using the changeset viewer.