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