Skip to content

Commit

Permalink
fix: bug when to pick to label by software
Browse files Browse the repository at this point in the history
fix bug of when to pick to label by software
  • Loading branch information
jcharkow committed Oct 7, 2024
1 parent 3a1d292 commit 4440925
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions docs/python_docs/Quick Start.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion massdash/loaders/GenericRawDataLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def plotChromatogram(self,
plotter = InteractivePlotter(pc)

# Plot the chromatogram data
labelBySoftware = not all(f.software for f in transitionGroupFeatures)
if len(transitionGroupFeatures) > 0:
# if multiple software tools used, label by software
labelBySoftware = not all([f.software == transitionGroupFeatures[0].software for f in transitionGroupFeatures])
if transitionGroupFeatures[0].software is not None and labelBySoftware:
feature_legend_labels = [ f.software for f in transitionGroupFeatures if f.software is not None]
else:
Expand Down

0 comments on commit 4440925

Please sign in to comment.