MockNP5450

class lsst.ts.tunablelaser.MockNP5450

Bases: object

Implements a mock NP5450 .

Attributes:
temperaturefloat

The temperature of the laser.

loglogging.Logger

The log for this class.

Methods Summary

check_limits(value, min, max)

Check the limits of a value.

do_get_01_sp()

do_set_01_sp(data)

do_set_op_01_runstop(data)

do_set_temperature()

Change setpoint temperature as formatted string.

parse_message(msg)

Parse and return the result of the message.

Methods Documentation

check_limits(value, min, max)

Check the limits of a value.

Parameters:
valueint

The value to check.

minint

The minimum value.

maxint

The max value

Returns:
replystr

if too low: return error if too high: return error if successful: return empty message

do_get_01_sp()
do_set_01_sp(data)
do_set_op_01_runstop(data)
do_set_temperature()

Change setpoint temperature as formatted string.

Returns:
str
parse_message(msg)

Parse and return the result of the message.

Parameters:
msgbytes

The message to parse.

Returns:
replybytes

The reply of the command parsed.