MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / read_sensor

Function read_sensor

example_code/item_069.py:53–57  ·  view source on GitHub ↗
(sensor_index)

Source from the content-addressed store, hash-verified

51counter = 0
52
53def read_sensor(sensor_index):
54 # Returns sensor data or raises an exception
55 # Nothing actually happens here, but this is where
56 # the blocking I/O would go.
57 pass
58
59def get_offset(data):
60 # Always returns 1 or greater

Callers 2

workerFunction · 0.85
locking_workerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected