Download Concert Documentation
Transcript
Concert Documentation, Release 0.9.0 $ concert edit new-session At the top of the file, you can see a string enclosed in three ". This should changed to something descriptive as it will be shown each time you start the session. Adding devices To create a device suited for your experiment you have to import it first. Concert uses the following packaging scheme to separate device classes and device implementations: concert.devices.[class].[implementation]. Thus if you want to create a dummy ring from the storage ring class, you would add this line to your session: from concert.devices.storagerings.dummy import StorageRing Once imported, you can create the device and give it a name that will be accessible from the command line shell: from concert.devices.motors.dummy import LinearMotor ring = StorageRing() motor = LinearMotor() Importing other sessions To specify experiments that share a common set of devices, you can define a base session and import it from each sub-session: from base import * Now everything that was defined will be present when you start up the new session. 1.3 User manual 1.3.1 Command line shell Concert comes with a command line interface that is launched by typing concert into a shell. Several subcommands define the action of the tool. Session commands The concert tool is run from the command line. Without any arguments, its help is shown: $ concert usage: concert [-h] [--version] ... optional arguments: -h, --help show this help message and exit --version show program’s version number and exit Concert commands: start init mv 6 Start a session Create a new session Move session *source* to *target* Chapter 1. User documentation