tcv.mds module

TCV MDS datasource

class tcv.mds.MDSConnection(shot, tree, server)[source]

Bases: tcv.datasource.DataSource

Generic MDSPlus datasource

close()[source]
tdi(cmd, *args, **kwargs)[source]

Execute a TDI command.

Parameters:
  • cmd (str) – The TDI command to execute.
  • args (variable length argument list) – Arguments to be passed to the TDI command
Keyword Arguments:
 

dims (str or sequence of str, optional) – Name(s) of the the data dimension(s). Must be either a string (only for 1D data) or a sequence of strings with length equal to the number of dimensions. If this argument is omited, dimension names are taken from the MDS tree (if possible) and otherwise default to ['dim_0', ... 'dim_n'].