Skip to content

Commit

Permalink
FIx bug with selecting experiment from only first item in cell list i…
Browse files Browse the repository at this point in the history
…n dash
  • Loading branch information
tomjholland committed Jun 18, 2024
1 parent 3b1feb8 commit 960879e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyprobe/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def dataframe_with_selections(df: pd.DataFrame) -> List[int]:

# Select an experiment
if selected_raw_data is not None:
experiment_names = cell_list[0].procedure[selected_raw_data].titles.keys()
experiment_names = (
cell_list[selected_indices[0]].procedure[selected_raw_data].titles.keys()
)
selected_experiment = st.sidebar.multiselect(
"Select an experiment", experiment_names
)
Expand Down

0 comments on commit 960879e

Please sign in to comment.