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