tendril.testing.measurements module

Docstring for measurements

class tendril.testing.measurements.TestMeasurementBase[source]

Bases: object

Object representing a single measurement for a Test

do_measurement()[source]

This is the measurement function. This should be overridden by the actual Test classes to perform the actual measurement.

render()[source]

This is an example render function. This should be overridden by the actual Test classes to render the actual result.

Rendering means encoding the test result into a JSON representation, which can later be dumped into a postgres database.

render_dox()[source]
load_result_from_obj(result_db_obj)[source]
parent
yesorno
class tendril.testing.measurements.TestSimpleMeasurement[source]

Bases: tendril.testing.measurements.TestMeasurementBase

do_measurement()[source]

This is an example measurement function. This should be overridden by the actual Test classes to perform the actual measurement, and this code can be used as a starting point.

The result of the measurement would typically be some composition of instances of tendril.utils.type.signalbase.SignalBase.

stime
yesorno
render()[source]
load_result_from_obj(result_db_obj)[source]
class tendril.testing.measurements.DCVoltageMeasurement[source]

Bases: tendril.testing.measurements.TestSimpleMeasurement

do_measurement()[source]

This function is present only because the instrument return value is not of a SignalPoint Type. Instrument classes should be changed to use Signal Point type instead and this class should fall back to the parent’s implementation.

parent
input_voltage
yesorno()[source]
render()[source]
load_result_from_obj(result_db_obj)[source]
class tendril.testing.measurements.ACVoltageMeasurement[source]

Bases: tendril.testing.measurements.TestSimpleMeasurement

do_measurement()[source]

This function is present only because the instrument return value is not of a SignalPoint Type. Instrument classes should be changed to use Signal Point type instead and this class should fall back to the parent’s implementation.

parent
input_voltage
yesorno()[source]
render()[source]
load_result_from_obj(result_db_obj)[source]
class tendril.testing.measurements.FrequencyMeasurement[source]

Bases: tendril.testing.measurements.TestSimpleMeasurement

do_measurement()[source]

This function is present only because the instrument return value is not of a SignalPoint Type. Instrument classes should be changed to use Signal Point type instead and this class should fall back to the parent’s implementation.

parent
input_frequency
yesorno()[source]
render()[source]
load_result_from_obj(result_db_obj)[source]
class tendril.testing.measurements.DCCurrentMeasurement[source]

Bases: tendril.testing.measurements.TestSimpleMeasurement

do_measurement()[source]

This function is present only because the instrument return value is not of a SignalPoint Type. Instrument classes should be changed to use Signal Point type instead and this class should fall back to the parent’s implementation.

parent
input_current
yesorno()[source]
render()[source]
load_result_from_obj(result_db_obj)[source]
class tendril.testing.measurements.TestUserMeasurement(string)[source]

Bases: tendril.testing.measurements.TestMeasurementBase

do_measurement()[source]
input_valid
yesorno
render()[source]
load_result_from_obj(result_db_obj)[source]