Units in task scripts

Overview

This page outlines our guidelines for handling units in task scripts.

Guidelines

  • Always use the ts_lib_units UnitParser.parse() method to parse raw unit strings to the TetraScience standard units

  • If the unit is not recognized, a warning should be logged and the raw unit string should be stored in the unit field of the ts_ids_core.schema.RawValueUnit component instead.