Ticket #7972: test_script.py

File test_script.py, 733 bytes (added by Samuel Jackson, 7 years ago)

python script for testing

Line 
1ws1 = CreateWorkspace(OutputWorkspace='SomeWorkspace',DataX='1',DataY='2',DataE='3',UnitX='Label',VerticalAxisUnit='Empty',VerticalAxisValues='0')
2ws2 = CreateWorkspace(OutputWorkspace='SomeOtherWorkspace',DataX='1',DataY='2',DataE='3',UnitX='Label',VerticalAxisUnit='Empty',VerticalAxisValues='0')
3
4#Add logs to first workspace
5AddSampleLog(Workspace='SomeWorkspace',LogName='A',LogText='Hello')
6AddSampleLog(Workspace='SomeWorkspace',LogName='B',LogText='World')
7
8#Add logs to second workspace
9AddSampleLog(Workspace='SomeOtherWorkspace',LogName='A',LogText='Hello')
10AddSampleLog(Workspace='SomeOtherWorkspace',LogName='B',LogText='Universe')
11
12CopyLogs(InputWorkspace=ws1, OutputWorkspace=ws2,MergeStrategy="MergeReplaceExisting")