Skip to content

Commit

Permalink
visual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Dec 4, 2024
1 parent 70c6cb3 commit 303e46b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,14 @@ def get_dash_components(self, include_subcomponents: bool = True) -> List[html.D
components = super().get_dash_components()

components.append(
html.Div(
dbc.Row(
[
dbc.Label("Result Type"),
dbc.Label("Result Type", style={"max-width": "150px"}),
dbc.Select(
id={"type": self.component_id, "index": "result-type"},
options=[{"label": rt, "value": rt} for rt in self.result_types],
value=self.result_type,
style={"max-width": "150px"},
),
]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def get_dash_components(self, include_subcomponents: bool = True) -> List[html.D
id={"type": self.component_id, "index": "readout_duration"},
label="Readout duration",
value=self.readout_pulse.length,
units="s",
units="ns",
),
]
)
Expand Down
2 changes: 1 addition & 1 deletion qualang_tools/control_panel/video_mode/video_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def update_heatmap(n_intervals):
@self.app.callback(
[],
[Input("update-button", "n_clicks")],
[State("num-averages", "value"), *component_states],
component_states,
blocking=True,
)
def update_params(n_update_clicks, num_averages, *component_inputs):
Expand Down

0 comments on commit 303e46b

Please sign in to comment.