Skip to content

Commit

Permalink
Merge pull request #71 from ImperialCollegeLondon/fix-procedure-selec…
Browse files Browse the repository at this point in the history
…tion-dashboard

FIx bug with dashboard selecting experiment from only first item in cell list
  • Loading branch information
tomjholland authored Jun 19, 2024
2 parents db3373a + 960879e commit dcc88cb
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 dcc88cb

Please sign in to comment.