Skip to content

Commit

Permalink
STY: PR Suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
aksharsarvesh committed Aug 26, 2024
1 parent 1fd0c7c commit b1badae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions archive_viewer/table_models/curve_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,12 @@ def curve_at_index(self, index: QModelIndex) -> ArchivePlotCurveItem:
return self._plot.curveAtIndex(index)

@Slot(object)
def remove_curve(self, curve: BasePlotCurveItem):
def remove_curve(self, curve: BasePlotCurveItem) -> None:
"""Necessary specifically for when an axis is deleted
To properly delete all of its connected curves"""
To properly delete all of its connected curves
curve: BasePlotCurveItem
The curve we want to delete from the model"""
ind = self._plot._curves.index(curve)
ind = self.index(ind, 0)
self.removeAtIndex(ind)

0 comments on commit b1badae

Please sign in to comment.