ReplyCodeFieldInfo

class lsst.ts.MTMount.field_info.ReplyCodeFieldInfo(default)

Bases: lsst.ts.MTMount.field_info.FixedEnumFieldInfo

Information for the command_code field of reply.

Parameters:
default : ReplyCode

The reply code for this reply.

Attributes Summary

default

Methods Summary

assert_value_ok(value)
str_from_value(value) Return a string representation of the value.
value_from_str(strval) Convert a string to a value of the correct type.

Attributes Documentation

default

Methods Documentation

assert_value_ok(value)
str_from_value(value)

Return a string representation of the value.

value_from_str(strval)

Convert a string to a value of the correct type.

Parameters:
strval : str

String representation of value.

Returns:
value : any

The parsed value.

Raises:
ValueError

If the value cannot be parsed.