Ticket #10279: script.py

File script.py, 421 bytes (added by Jose Borreguero, 6 years ago)

fit the data

Line 
1'''Load S(E) and clone to a slightly sifted workspace. Then,
2fit both workspaces and check that the Centre parameter is (close to) the
3imposed shift 0.0002
4'''
5q300=LoadNexus(Filename='/tmp/q300.nxs')
6trial=CloneWorkspace(q300)
7trial=ScaleX(trial,Factor=0.0002,Operation='Add')
8fitstring='name=TabulatedFunction,Workspace=trial,WorkspaceIndex=0,Scaling=1.0,Centre=0.0'
9Fit(fitstring,InputWorkspace=q300, CreateOutput=1)