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 e1c91b8 commit 5ba59ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions cellacdc/docs/source/tooltips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@
:height: 16px
:width: 16px

.. |drawClearRegionAction| image:: https://raw.githubusercontent.com/SchmollerLab/Cell_ACDC/3dcf5611281c35e3cf8b7676ca7c00c9b17ee8e7/cellacdc/resources/icons/clear_freehand_region.svg
.. |drawClearRegionButton| image:: https://raw.githubusercontent.com/SchmollerLab/Cell_ACDC/3dcf5611281c35e3cf8b7676ca7c00c9b17ee8e7/cellacdc/resources/icons/clear_freehand_region.svg
:target: https://github.com/SchmollerLab/Cell_ACDC/blob/main/cellacdc/resources/icons/clear_freehand_region.svg
:alt: drawClearRegionAction icon
:alt: drawClearRegionButton icon
:height: 16px
:width: 16px

.. |addDelPolyLineRoiAction| image:: https://raw.githubusercontent.com/SchmollerLab/Cell_ACDC/3dcf5611281c35e3cf8b7676ca7c00c9b17ee8e7/cellacdc/resources/icons/addDelPolyLineRoi.svg
.. |addDelPolyLineRoiButton| image:: https://raw.githubusercontent.com/SchmollerLab/Cell_ACDC/3dcf5611281c35e3cf8b7676ca7c00c9b17ee8e7/cellacdc/resources/icons/addDelPolyLineRoi.svg
:target: https://github.com/SchmollerLab/Cell_ACDC/blob/main/cellacdc/resources/icons/addDelPolyLineRoi.svg
:alt: addDelPolyLineRoiAction icon
:alt: addDelPolyLineRoiButton icon
:height: 16px
:width: 16px

Expand Down Expand Up @@ -427,7 +427,7 @@ Edit tools: Segmentation and tracking
* **Remove object from analysis (** |binCellButton| **):** Annotate that a cell is removed from downstream analysis. ``is_cell_excluded`` set to ``True`` in ``acdc_output.csv`` table. Done by right-clicking.
* **Annotate cell as dead (** |ripCellButton| **"D"):** Annotate that a cell is dead. ``is_cell_dead`` set to ``True`` in ``acdc_output.csv`` table.
* **Add deletion ROI (** |addDelRoiAction| **):** Add resizable rectangle. Every ID touched by the rectangle will be automatically deleted. Moving and resizing the rectangle will restore deleted IDs if they are not touched by it anymore. To delete rectangle ``right-click on it --> remove``.
* **Add poly-line deletion ROI (** |addDelPolyLineRoiAction| **):**
* **Add poly-line deletion ROI (** |addDelPolyLineRoiButton| **):**
* How to use
1. Activate the button.
2. Left-click on the LEFT image to add a new anchor point.
Expand All @@ -437,7 +437,7 @@ Edit tools: Segmentation and tracking
* Add custom poly-line deletion ROI. Every ID touched by the ROI will be automatically deleted.
* Moving and reshaping the ROI will restore deleted IDs if they are not touched by it anymore.
* To delete the ROI ``right-click on it --> remove``.
* **Clear freehand region (** |drawClearRegionAction| **):** Draw a freehand region and clear all objects present in the region. Once activated, additional options will appear in a new toolbar.
* **Clear freehand region (** |drawClearRegionButton| **):** Draw a freehand region and clear all objects present in the region. Once activated, additional options will appear in a new toolbar.
* **Delete bordering objects (** |delBorderObjAction| **):** Remove segmented objects touching the border of the image.
* **Repeat tracking (** |repeatTrackingAction| **"Shift+T"):** Repeat tracking on current frame. Tracking method can be changed in ``Tracking --> Select real-time tracking algorithm``
* **Manual tracking (** |manualTrackingButton| **"T"):** Select ID to track and right-click on an object to assign that ID.
Expand Down
4 changes: 3 additions & 1 deletion cellacdc/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,8 @@ def setTooltips(self): #laoding tooltips for GUI from .\Cell_ACDC\docs\source\to
tooltip
)


printl(key, tooltip)
getattr(self, key).setToolTip(tooltip)

def run(self, module='acdc_gui', logs_path=None):
Expand Down Expand Up @@ -13014,7 +13016,7 @@ def clearObjsFreehandRegion(self):
regionSlice = self.freeRoiItem.slice(zRange=zRange)
mask = self.freeRoiItem.mask()

regionLab = posData.lab[..., *regionSlice].copy()
regionLab = posData.lab[(...,) + regionSlice].copy()
regionLab[..., ~mask] = 0

clearBorders = (
Expand Down

0 comments on commit 5ba59ab

Please sign in to comment.