event_based_logging Event based logging for a measurement

event_based_logging.py

event_based_logging.event_based_log_a(value)

This measurement script is used to decide whether or not to log. The goal is to log if there is a significant change between two readings.

We compare current reading to the previously LOGGED one. If the difference is large enough, we log the value, and increase the measurement interval. If the difference is not significant, we want to log at at much slower rate.

event_based_logging.prev_logged_value(meas_index)

Searches log for said measurement

Parameters:meas_index (int, e.g. 1 for M1, 12 for M12) – which measurement to search log for
Returns:either the reading found in the log, or a reading with bad quality
Return type:Reading