Replies: 1 comment 1 reply
-
Hi, thank you for the useful tutorial! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After an submitted experiment is done, the result file is created in ARTIQ master directory.
In this discussion, I will let you know about this result file.
Introduction
Path
The result file is located in
${artiq-master}/{results}/{submission_date}/{submission_time}
.And its name is
{RID}-{experiment_class_name}.py
.For example,
~/artiq/results/2023-08-09/19/000001432-TTLResolution.h5
.H5 format
The "H5" or "HDF5" format is for huge amounts of numerical data, and easily manipulating that data from NumPy.
How to access
In Python, we can access this format using h5py package.
If you installed ARTIQ package, this has already been installed with ARTIQ.
Also, if you use VS Code, some extensions e.g., H5Web may help you to show h5 file visually.
Key point
The "H5" use a directory scheme. So we can handle data like a directory structure easily.
For details, see also h5py docs.
Result file
h5 example.zip
The above is an example of the actual result file.
Structure
Its keys and values are as follows:
datasets
It contains all datasets created in this experiment.
Since the h5 format supports NumPy arrays, the dataset is also the same type.
expid
It is the same as
expid
in artiq_client.py.It contains the class name, the arguments, the schedule options, etc.
rid
It is just the RID.
How to access the file using h5py
Fetch the data
Add the data
Beta Was this translation helpful? Give feedback.
All reactions