main
tergite_autocalibration.tools.browser.main
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) |
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 with the selection for the calibration runs |
update_tab |
Callback to update the tab content with the calibration image and qubit data |
refresh_folder_structure
reset_inner_on_inter_change
reset_inner_on_inter_change(inter_value: str)
prevents callback errors when the inner (node measurement) folder has changed but not the intermediate (calibration chain folder)
reset_intermediate_on_outer_change
reset_intermediate_on_outer_change(inter_value: str)
prevents callback errors when the intermediate (calibration chain folder) folder has changed but not the outer (date folder)
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_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: