science_jubilee.tools.Tool#

Module Contents#

Classes#

Tool

Functions#

requires_active_tool(func)

Decorator to ensure that a tool cannot complete an action unless it is the

exception science_jubilee.tools.Tool.ToolStateError#

Bases: Exception

Raise this error if the tool is in the wrong state to perform such a command.

exception science_jubilee.tools.Tool.ToolConfigurationError#

Bases: Exception

Raise this error if there is something wrong with how the tool is configured

class science_jubilee.tools.Tool.Tool(index, name, **kwargs)#
post_load()#

Run any code after tool has been associated with the machine.

science_jubilee.tools.Tool.requires_active_tool(func)#

Decorator to ensure that a tool cannot complete an action unless it is the current active tool.