From baff5939ec8603a6d28dbd58317c5cd45c613a92 Mon Sep 17 00:00:00 2001 From: Tom David Mueller Date: Wed, 2 Oct 2024 20:10:45 +0200 Subject: [PATCH] only send relevant data to vue --- pages/FLASHTaggerViewer.py | 4 +++- src/components.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/FLASHTaggerViewer.py b/pages/FLASHTaggerViewer.py index a8260e4..e0912d1 100644 --- a/pages/FLASHTaggerViewer.py +++ b/pages/FLASHTaggerViewer.py @@ -237,7 +237,9 @@ def sendDataToJS(selected_data, layout_info_per_exp, grid_key='flash_viewer_grid continue dfs.append(tmp_df) - data_to_send['per_scan_data'] = pd.concat(dfs, axis=1) + combined_dfs = pd.concat(dfs, axis=1) + combined_dfs = combined_dfs[np.isin(combined_dfs['Scan'], protein_df['Scan'])] + data_to_send['per_scan_data'] = combined_dfs # Set sequence data data_to_send['sequence_data'] = sequence_data diff --git a/src/components.py b/src/components.py index 865a65a..6c38fd2 100644 --- a/src/components.py +++ b/src/components.py @@ -4,7 +4,7 @@ # Create a _RELEASE constant. We'll set this to False while we're developing # the component, and True when we're ready to package and distribute it. -_RELEASE = False +_RELEASE = True def flash_viewer_grid_component(components, data, component_key='flash_viewer_grid'):