Ticket #5546: filterlogs.py

File filterlogs.py, 330 bytes (added by Owen Arnold, 8 years ago)
Line 
1period = 17
2ws = mtd['POLREF00006224_' + str(period)]
3run = ws.getRun()
4temperature_log = run.getLogData('methantemp')
5
6period_log =run.getLogData('period ' + str(period))
7filter = LogFilter(temperature_log)
8filter.addFilter(period_log)
9filtered_log = filter.data()
10
11print period, temperature_log.size(), filtered_log.size()