Source code for example_lite.scripts.process_defaults
""" Module for the tab defaut value """
import warnings
from opentea import BaseProcess
[docs]def process_defaults(process):
""" Process the defaults tab """
dataset = process.ds
process.log.info("Processing defaults...")
value = float(dataset.getValue("real1", "add"))
process.log.info("Real 1 is " + str(value))
dataset.setValue(value + 3.1416, "real1", "add")
# trigger the filter on PythonWarnings
#warnings.warn("Future warning... just like h5py!", FutureWarning)
if __name__ == '__main__':
PROCESS = BaseProcess('dataset.xml')
process_defaults(PROCESS)
PROCESS.finish()