Ticket #10279: script.py
File script.py, 421 bytes (added by Jose Borreguero, 6 years ago) |
---|
Line | |
---|---|
1 | '''Load S(E) and clone to a slightly sifted workspace. Then, |
2 | fit both workspaces and check that the Centre parameter is (close to) the |
3 | imposed shift 0.0002 |
4 | ''' |
5 | q300=LoadNexus(Filename='/tmp/q300.nxs') |
6 | trial=CloneWorkspace(q300) |
7 | trial=ScaleX(trial,Factor=0.0002,Operation='Add') |
8 | fitstring='name=TabulatedFunction,Workspace=trial,WorkspaceIndex=0,Scaling=1.0,Centre=0.0' |
9 | Fit(fitstring,InputWorkspace=q300, CreateOutput=1) |