dataset_browser
tergite_autocalibration.tools.browser.pages.dataset_browser
Functions:
| Name | Description |
|---|---|
refresh_folder_structure |
Callback to refresh the outer folder structure |
reset_inner_on_inter_change |
prevents callback errors when the inner (node measurement) |
reset_intermediate_on_outer_change |
prevents callback errors when the intermediate (calibration chain folder) |
reset_outer_on_clicked_starred |
Clears the outer (date) selection when a starred item is clicked. |
toggle_compare |
Callback for the toggle button in the top row |
update_inner_folders |
Callback to update the inner folders with the selection for the measurements |
update_intermediate_folders |
Callback to update the intermediate folders in the second dropdown menu |
update_outer_folders |
Callback to update the outer folders in the first dropdown menu |
update_qoi_display |
Callback to update the qoi display |
update_styles |
Callback to highlight a clicked starred measurement |
update_tab |
Callback to update the tab content with the calibration image and qubit data |
refresh_folder_structure
Callback to refresh the outer folder structure
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_clicks
|
int
|
Unused |
required |
node_filter_text
|
str
|
User provided string. Only measurement folders containing this string are regarded valid. |
required |
element_filter_text
|
str
|
User provided string. Only measurement folders where the device json contains thisi string are regarded valid. |
required |
Returns:
reset_inner_on_inter_change
reset_inner_on_inter_change(inter_value: str, n_clicks)
prevents callback errors when the inner (node measurement) folder has changed but not the intermediate (calibration chain folder). Also clears the selection when a starred item is clicked.
reset_intermediate_on_outer_change
reset_intermediate_on_outer_change(inter_value: str, n_clicks)
prevents callback errors when the intermediate (calibration chain folder) folder has changed but not the outer (date folder). Also clears the selection when a starred item is clicked.
reset_outer_on_clicked_starred
reset_outer_on_clicked_starred(inter_value: str, n_clicks)
Clears the outer (date) selection when a starred item is clicked.
toggle_compare
toggle_compare(n_clicks: int)
Callback for the toggle button in the top row
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_clicks
|
int
|
Number of clicks, used to identify whether to toggle view |
required |
Returns:
update_inner_folders
Callback to update the inner folders with the selection for the measurements
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
selected_intermediate
|
str
|
Selected folder for the calibration run |
required |
selected_outer
|
str
|
Selected outer folder with the calibration date |
required |
folder_data
|
dict
|
What is inside that calibration run folder |
required |
Returns:
update_intermediate_folders
update_outer_folders
update_outer_folders(folder_data: dict)
Callback to update the outer folders in the first dropdown menu with the selection for the dates. It is used particularly when a filter string is applied, to filter out date folders that dont contain measurements containing the filter string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
folder_data
|
dict
|
What is inside that folder |
required |
Returns:
update_qoi_display
update_styles
update_styles(starred: int)
Callback to highlight a clicked starred measurement
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
starred
|
int
|
Unused, the number of clicks for all items |
required |
Returns:
update_tab
Callback to update the tab content with the calibration image and qubit data
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tab
|
str
|
Whether it is the image or the json tab |
required |
outer
|
str
|
Outer folder with the measurement date |
required |
inter
|
str
|
Intermediate folder with the calibration run |
required |
inner
|
str
|
Inner folder with the qubit measurement |
required |
Returns: