Changeset d7cd7d1 in sasmodels for example/fit_sesans.py


Ignore:
Timestamp:
Mar 19, 2016 10:59:54 AM (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:
81d3a0c
Parents:
ed048b2
Message:

allow command line bumps from fit_sesans driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • example/fit_sesans.py

    r52e3eef rd7cd7d1  
    1414sys.path.insert(0, SASMODELS) 
    1515 
    16 from bumps.gui.gui_app import main as gui 
    17 gui() 
     16if sys.argv[-1].startswith('-'): 
     17    from bumps.cli import main as run_bumps 
     18else: 
     19    from bumps.gui.gui_app import main as run_bumps 
     20run_bumps() 
Note: See TracChangeset for help on using the changeset viewer.