Changeset 33d38d5 in sasmodels
- Timestamp:
- Mar 24, 2015 4:02:18 AM (10 years ago)
- 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
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
example/sesansfit.py
r9c117a2 r33d38d5 11 11 from sas.dataloader.loader import Loader 12 12 loader=Loader() 13 data=loader.load('testsasview1.ses') 13 data=loader.load('se008724_01.ses') 14 # data=loader.load('testsasview1.ses') 15 14 16 data.x /=10 15 17 # print data 16 18 # data = load_sesans('mydatfile.pz') 17 19 # sans_data = load_sans('mysansfile.xml') … … 43 45 model = sas.BumpsModel(data, kernel, 44 46 scale=phi*(1-phi), sld=7.0, solvent_sld=1.0, radius=radius) 45 phi.range(0.001,0. 90)47 phi.range(0.001,0.5) 46 48 #model.radius.pmp(40) 47 model.radius.range(1 00,10000)48 #model.sld.pm p(5)49 model.radius.range(1,10000) 50 #model.sld.pm(5) 49 51 #model.background 50 52 #model.radius_pd=0 -
sasmodels/bumps_model.py
r8632a35 r33d38d5 221 221 plt.errorbar(data.x, data.y, yerr=data.dy) 222 222 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)') 225 225 plt.subplot(122) 226 226 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)') 229 229 230 230 def _plot_result2D(data, theory, view):
Note: See TracChangeset
for help on using the changeset viewer.