Changes in / [0656250:0a33675] in sasmodels
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
example/sesansfit.py
r33d38d5 r0a33675 12 12 from sas.dataloader.loader import Loader 13 13 loader=Loader() 14 <<<<<<< HEAD15 data=loader.load('se008724_01.ses')16 # data=loader.load('testsasview1.ses')17 18 =======19 14 filename = 'testsasview1.ses' 20 15 data=loader.load(filename) 21 16 if data is None: raise IOError("Could not load file %r"%(filename,)) 22 17 print dir(data), type(data) 23 >>>>>>> 0a33675f5dfe63dcfc7345913a0bb44858641acc24 18 data.x /=10 25 # print data 19 26 20 # data = load_sesans('mydatfile.pz') 27 21 # sans_data = load_sans('mysansfile.xml') … … 53 47 model = bumps_model.BumpsModel(data, kernel, 54 48 scale=phi*(1-phi), sld=7.0, solvent_sld=1.0, radius=radius) 55 phi.range(0.001,0. 5)49 phi.range(0.001,0.90) 56 50 #model.radius.pmp(40) 57 model.radius.range(1 ,10000)58 #model.sld.pm (5)51 model.radius.range(100,10000) 52 #model.sld.pmp(5) 59 53 #model.background 60 54 #model.radius_pd=0 -
sasmodels/bumps_model.py
r33d38d5 raa4946b 218 218 plt.errorbar(data.x, data.y, yerr=data.dy) 219 219 plt.plot(data.x, theory, '-', hold=True) 220 plt.xlabel('spin echo length ( nm)')221 plt.ylabel('polarization (P/P0)')220 plt.xlabel('spin echo length (A)') 221 plt.ylabel('polarization') 222 222 plt.subplot(122) 223 223 plt.plot(data.x, resid, 'x') 224 plt.xlabel('spin echo length ( nm)')225 plt.ylabel('residuals (P/P0)')224 plt.xlabel('spin echo length (A)') 225 plt.ylabel('residuals') 226 226 227 227 def _plot_result2D(data, theory, view):
Note: See TracChangeset
for help on using the changeset viewer.