Changeset 98ba1fc in sasmodels


Ignore:
Timestamp:
Jul 14, 2016 3:38:02 PM (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:
a738209
Parents:
56b2687
Message:

complete merge from master to polydisp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/modelinfo.py

    rda63656 r98ba1fc  
    633633 
    634634    # find the defintion lines for the different code blocks 
    635     source = inspect.getsource(kernel_module) 
     635    try: 
     636        source = inspect.getsource(kernel_module) 
     637    except IOError: 
     638        return 
    636639    for k, v in enumerate(source.split('\n')): 
    637640        if v.startswith('Iqxy'): 
     
    844847 
    845848    # line numbers within the python file for bits of C source, if defined 
    846     _Iqxy_line = 0 
    847     _Iq_line = 0 
    848     _form_volume_line = 0 
     849    # NB: some compilers fail with a "#line 0" directive, so default to 1. 
     850    _Iqxy_line = 1 
     851    _Iq_line = 1 
     852    _form_volume_line = 1 
    849853 
    850854 
Note: See TracChangeset for help on using the changeset viewer.