Changeset 33d38d5 in sasmodels


Ignore:
Timestamp:
Mar 24, 2015 4:02:18 AM (10 years ago)
Author:
unknown <jhbakker@…>
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:
0656250
Parents:
8632a35
Message:

Add SESANS example data

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • example/sesansfit.py

    r9c117a2 r33d38d5  
    1111    from sas.dataloader.loader import Loader 
    1212    loader=Loader() 
    13     data=loader.load('testsasview1.ses') 
     13    data=loader.load('se008724_01.ses') 
     14#    data=loader.load('testsasview1.ses') 
     15  
    1416    data.x /=10 
    15      
     17#    print data 
    1618#    data = load_sesans('mydatfile.pz') 
    1719#    sans_data = load_sans('mysansfile.xml') 
     
    4345model = sas.BumpsModel(data, kernel, 
    4446    scale=phi*(1-phi), sld=7.0, solvent_sld=1.0, radius=radius) 
    45 phi.range(0.001,0.90) 
     47phi.range(0.001,0.5) 
    4648#model.radius.pmp(40) 
    47 model.radius.range(100,10000) 
    48 #model.sld.pmp(5) 
     49model.radius.range(1,10000) 
     50#model.sld.pm(5) 
    4951#model.background 
    5052#model.radius_pd=0 
  • sasmodels/bumps_model.py

    r8632a35 r33d38d5  
    221221    plt.errorbar(data.x, data.y, yerr=data.dy) 
    222222    plt.plot(data.x, theory, '-', hold=True) 
    223     plt.xlabel('spin echo length (A)') 
    224     plt.ylabel('polarization') 
     223    plt.xlabel('spin echo length (nm)') 
     224    plt.ylabel('polarization (P/P0)') 
    225225    plt.subplot(122) 
    226226    plt.plot(data.x, resid, 'x') 
    227     plt.xlabel('spin echo length (A)') 
    228     plt.ylabel('residuals') 
     227    plt.xlabel('spin echo length (nm)') 
     228    plt.ylabel('residuals (P/P0)') 
    229229 
    230230def _plot_result2D(data, theory, view): 
Note: See TracChangeset for help on using the changeset viewer.