Skip to content

Commit

Permalink
Merge pull request #47 from aksharsarvesh/autoVisibleFix
Browse files Browse the repository at this point in the history
FIX: autoVisible works with FCIs
  • Loading branch information
zdomke authored Sep 10, 2024
2 parents 96629ec + e40512a commit 87da3f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions archive_viewer/table_models/curve_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ def replaceToFormula(self, index: QModelIndex, formula: str, color: Optional[str
self._plot._curves[index.row()] = FormulaCurve
FormulaCurve.formula_invalid_signal.connect(partial(self.invalidFormula, header = rowName))
# Need to check if Formula is referencing a dead row
self.plot.plotItem.unlinkDataFromAxis(curve)
self.plot.removeItem(curve)
# Disconnect everything and delete it, create a new Formula with the dictionary of curve
[ch.disconnect() for ch in curve.channels() if ch]
Expand Down

0 comments on commit 87da3f4

Please # to comment.