Source code for example_lite.scripts.process_xor
""" Module for the tab test XOR """
from opentea import BaseProcess
[docs]def process_xor(process):
""" Process the tab test XOR """
dataset = process.ds
xor = dataset.getValue("xorchoice")
if xor == "alpha":
value = dataset.getValue("temperature")
process.log.info("temperature " + str(value))
elif xor == "beta":
value = dataset.getValue("pressure")
process.log.info("pressure " + str(value))
if __name__ == '__main__':
PROCESS = BaseProcess('dataset.xml')
process_xor(PROCESS)
PROCESS.finish()