Skip to content

Commit

Permalink
fix: lint error CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ElpadoCan committed Feb 11, 2025
1 parent 04aeed9 commit e1c91b8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cellacdc/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7707,70 +7707,70 @@ def gui_mousePressEventImg1(self, event):
and not brushON and not dragImgLeft and not eraserON
and not polyLineRoiON and not labelRoiON
and addPointsByClickingButton is None
and not manualBackgroundON and not canDrawClearRegion
and not manualBackgroundON and not drawClearRegionON
)
canBrush = (
brushON and not curvToolON and not rulerON
and not dragImgLeft and not eraserON and not wandON
and not labelRoiON and not manualBackgroundON
and addPointsByClickingButton is None and not canDrawClearRegion
and addPointsByClickingButton is None and not drawClearRegionON
)
canErase = (
eraserON and not curvToolON and not rulerON
and not dragImgLeft and not brushON and not wandON
and not polyLineRoiON and not labelRoiON
and addPointsByClickingButton is None
and not manualBackgroundON and not canDrawClearRegion
and not manualBackgroundON and not drawClearRegionON
)
canRuler = (
rulerON and not curvToolON and not brushON
and not dragImgLeft and not brushON and not wandON
and not polyLineRoiON and not labelRoiON
and addPointsByClickingButton is None
and not manualBackgroundON and not canDrawClearRegion
and not manualBackgroundON and not drawClearRegionON
)
canWand = (
wandON and not curvToolON and not brushON
and not dragImgLeft and not brushON and not rulerON
and not polyLineRoiON and not labelRoiON
and addPointsByClickingButton is None
and not manualBackgroundON and not canDrawClearRegion
and not manualBackgroundON and not drawClearRegionON
)
canPolyLine = (
polyLineRoiON and not wandON and not curvToolON and not brushON
and not dragImgLeft and not brushON and not rulerON
and not labelRoiON and not manualBackgroundON
and addPointsByClickingButton is None
and not canDrawClearRegion
and not drawClearRegionON
)
canLabelRoi = (
labelRoiON and not wandON and not curvToolON and not brushON
and not dragImgLeft and not brushON and not rulerON
and not polyLineRoiON and not keepObjON
and addPointsByClickingButton is None
and not manualBackgroundON and not canDrawClearRegion
and not manualBackgroundON and not drawClearRegionON
)
canKeep = (
keepObjON and not wandON and not curvToolON and not brushON
and not dragImgLeft and not brushON and not rulerON
and not polyLineRoiON and not labelRoiON
and addPointsByClickingButton is None
and not manualBackgroundON and not canDrawClearRegion
and not manualBackgroundON and not drawClearRegionON
)
canAddPoint = (
self.togglePointsLayerAction.isChecked()
and addPointsByClickingButton is not None and not wandON
and not curvToolON and not brushON
and not dragImgLeft and not brushON and not rulerON
and not polyLineRoiON and not labelRoiON and not keepObjON
and not manualBackgroundON and not canDrawClearRegion
and not manualBackgroundON and not drawClearRegionON
)
canAddManualBackgroundObj = (
manualBackgroundON and not wandON and not curvToolON and not brushON
and not dragImgLeft and not brushON and not rulerON
and not polyLineRoiON and not labelRoiON
and addPointsByClickingButton is None
and not keepObjON and not canDrawClearRegion
and not keepObjON and not drawClearRegionON
)
canDrawClearRegion = (
drawClearRegionON and not wandON and not curvToolON and not brushON
Expand Down

0 comments on commit e1c91b8

Please sign in to comment.