The inst_manager module

A tool to manage instruments.

Classes

InstrumentManager

class src.core.inst_manager.InstrumentManager[source]

A class for managing instruments.

There are several purposes for this class. One is loading available instruments and relaying them to other objects. Perhaps the most important is ensuring that only one instance of each cryostat object exists at a time, since major problems can occur if there are multiple instances.

Methods

constructController(instrument)[source]

Construct a controller for the specified instrument if possible.

Parameters :

instrument : Instrument

The Instrument object for which to construct a controller.

Returns :

Controller :

A Controller object for the specified instrument. If the specified instrument already has a controller associated with it, the existing controller will be returned.

constructInstrument(name, experiment)[source]

Construct a new instrument.

Parameters :

name : str

The name of the instrument to create.

experiment : Experiment

The experiment which should own the instrument.

Returns :

Instrument :

An instance of the desired instrument class. If the requested instrument is a cryostat and the class has already been instantiated, the returned value is the already-instantiated cryostat. Otherwise, a newly created instrument is returned.

getAvailableInstrumentStrings()[source]

Get a list of strings of available instruments.

Returns :

list of str :

A list of strings indicating the names of the available instruments.

Table Of Contents

Previous topic

The experiment module

Next topic

The dev package

This Page