Skip to content

Commit

Permalink
Merge pull request #62 from t0mdavid-m/small_release
Browse files Browse the repository at this point in the history
Only send relevant data to Vue.js component.
  • Loading branch information
t0mdavid-m authored Oct 3, 2024
2 parents cef5868 + baff593 commit 05c9c6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pages/FLASHTaggerViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 05c9c6e

Please sign in to comment.