Ticket #11042: multi_fit1.py

File multi_fit1.py, 349 bytes (added by Roman Tolchenov, 6 years ago)
Line 
1d0 = Load('d0.nxs')
2d1 = Load('d1.nxs')
3
4ft = 'name=Gaussian,PeakCentre=0,Height=1,Sigma=0.5,$domains=%s'
5
6# swap 0 <--> 1
7f0 = ft % 0
8f1 = ft % 1
9
10# swap f0 <--> f1
11ties = ';ties = (f0.Height=f1.Height)'
12
13func = 'composite=MultiDomainFunction,NumDeriv=1;%s;%s %s' % (f0,f1,ties)
14
15Fit(func,InputWorkspace='d0',InputWorkspace_1='d1', Output='out')