From 960879e58e6bb074bfdd00995ec0b757ed1b52d4 Mon Sep 17 00:00:00 2001 From: Tom Holland Date: Tue, 18 Jun 2024 11:53:44 +0100 Subject: [PATCH] FIx bug with selecting experiment from only first item in cell list in dash --- pyprobe/dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyprobe/dashboard.py b/pyprobe/dashboard.py index 7db68829..3e7e9e26 100644 --- a/pyprobe/dashboard.py +++ b/pyprobe/dashboard.py @@ -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 )