Ticket #7229: create_dead_time_table.py

File create_dead_time_table.py, 287 bytes (added by Arturs Bekasovs, 7 years ago)

Script which creates dead time table with some random data

Line 
1# Create a dummy dead time table, where all the dead times are 0.015
2mtd.remove("dead_times")
3
4t = WorkspaceFactory.createTable()
5t.addColumn("int", "Index")
6t.addColumn("double", "Value")
7for i in range(0, ws.getNumberHistograms()):
8        t.addRow([i + 1, 0.015])
9               
10mtd.add("dead_times", t)