-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
624 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,9 @@ target/ | |
# pyenv | ||
.python-version | ||
|
||
# vscode | ||
.vscode | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Constants used throughout | ||
WINDOW_HEIGHT = 750 | ||
WINDOW_WIDTH = 1500 | ||
COLUMN_WIDTH = 150 | ||
|
||
|
||
POINT_SIZE = 5 | ||
SPLINE_SIZE = 4 | ||
NUM_COLORS = 10 | ||
BRUSH_SIZE = 10 | ||
SPLINE_POINTS_DEFAULT = 1000 | ||
SPLINE_SMOOTHING_DEFAULT = 0.1 | ||
FIT_DEGREE_DEFAULT = 3 | ||
|
||
SUMMARISE_TRACK_DEFAULT = True | ||
ADD_SURFACE_POINT_DEFAULT = False | ||
CALCULATE_VOLUMES_DEFAULT = True | ||
SUMMARIZE_VOLUMES_DEFAULT = True | ||
|
||
TRACK_FILE_EXT = ".points" | ||
IMAGE_FILE_EXT = ".tiff" | ||
BOUNDARIES_STRING = "Boundaries" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Small layout utils | ||
from napari.viewer import Viewer | ||
|
||
|
||
def disable_napari_btns(viewer): | ||
""" | ||
Disable some Napari functions to hide them from user interation | ||
- Transpose TODO: Understand how to add this properly with space conventions | ||
- Grid view | ||
- Console | ||
- New labels layer | ||
- New points layer | ||
- New shapes layer | ||
""" | ||
viewer.window.qt_viewer.viewerButtons.transposeDimsButton.setVisible(False) | ||
viewer.window.qt_viewer.viewerButtons.gridViewButton.setVisible(False) | ||
viewer.window.qt_viewer.viewerButtons.consoleButton.setVisible(False) | ||
viewer.window.qt_viewer.layerButtons.newLabelsButton.setVisible(False) | ||
viewer.window.qt_viewer.layerButtons.newPointsButton.setVisible(False) | ||
viewer.window.qt_viewer.layerButtons.newShapesButton.setVisible(False) | ||
|
||
|
||
def disable_napari_key_bindings(): | ||
""" | ||
Disable some default key bingings that are unused | ||
""" | ||
|
||
@Viewer.bind_key("Control-G", overwrite=True) | ||
def no_grid_mode_warning(self): | ||
print("Grid mode is not supported") | ||
|
||
@Viewer.bind_key("Control-T", overwrite=True) | ||
def no_tranpose_warning(self): | ||
print("Transposing is not supported") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.