def value(self, units=None):
if units is None:<EOL><INDENT>return self._value<EOL><DEDENT>if not units.upper() in CustomPressure.legal_units:<EOL><INDENT>raise UnitsError("<STR_LIT>" + units + "<STR_LIT:'>")<EOL><DEDENT>units = units.upper()<EOL>if units == self._units:<EOL><INDENT>return self._value<EOL><DEDENT>if self._units == "<STR_LIT>":<EOL><INDENT>mb_value = self._value * <NUM_LIT><EOL><DEDENT>elif self._units == "<STR_LIT>":<EOL><INDENT>mb_value = self._value * <NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>mb_value = self._value<EOL><DEDENT>if units in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>return mb_value<EOL><DEDENT>if units == "<STR_LIT>":<EOL><INDENT>return mb_value / <NUM_LIT><EOL><DEDENT>if units == "<STR_LIT>":<EOL><INDENT>return mb_value / <NUM_LIT><EOL><DEDENT>raise UnitsError("<STR_LIT>" + units + "<STR_LIT:'>")<EOL>
Return the pressure in the specified units.