Data Loaders
Tabular
This data loader will load local tabular data files (e.g., CSV, parquet, etc.) using pandas. The data files must be accessible at the path provided. The column names will be used as the names for the signal names.
UDA
This data loader uses UDA to access MAST and MAST-U data. In order for this data loader to work, you must be connected to a machine with access to one of the UDA servers. Additionally, you will need to configure the following environment variables on your system:
export UDA_HOST="uda2.mast.l"
export UDA_META_PLUGINNAME="MASTU_DB"
export UDA_METANEW_PLUGINNAME="MAST_DB"
UDA Camera
This data loader uses UDA to access camera data from MAST and MAST-U. In order for this data loader to work, you must be connected to a machine with access to one of the UDA servers as above.
SAL
This data loader uses SAL to access data from the JET data centre. In order for this data loader to work, you must be connected to a machine with access to the JDC or connected to the JDC VPN. Furthermore, you must have configured a local authentication details file at ~/.sal/credentials, with contents looking the the following:
[https://sal.jetdata.eu]
user=<your-username>
password=<your-password>
FAIR MAST
This data loader access data from the FAIR MAST project.
Image
This data loader will load PNG or JPEG image files stored locally on your computer. For each sample, it expects a directory named after the sample's shot ID, which contains a series of image files named <frame_number>.<png/jpeg>.
Image Array
This data loader will load Numpy files (.npy / .npz) and display them as images. It expects a set of numpy files named <shot_id>.<npy/npz>, and each file should either contain:
- A 3D array, with dimensions of: frame x height x width, or
- A 4D array, with dimensions of: frame x height x width x RGB
Values will be linearly scaled to be between 1-255 if required. If using a .npz file containing more than one named array, you should specify a signal_name which is the name of the array to use.