From aecb2c3d20897036cf2f8008b10c30b9cff23027 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Wed, 17 Jul 2024 14:47:28 +0100 Subject: [PATCH] Remove command line entry point and associated constants --- brainglobe_segmentation/layout/gui_constants.py | 2 -- brainglobe_segmentation/segment.py | 15 --------------- 2 files changed, 17 deletions(-) diff --git a/brainglobe_segmentation/layout/gui_constants.py b/brainglobe_segmentation/layout/gui_constants.py index 3053b91..6272aa1 100644 --- a/brainglobe_segmentation/layout/gui_constants.py +++ b/brainglobe_segmentation/layout/gui_constants.py @@ -1,6 +1,4 @@ # Constants used throughout -WINDOW_HEIGHT = 750 -WINDOW_WIDTH = 1500 COLUMN_WIDTH = 150 DISPLAY_REGION_INFO = ( diff --git a/brainglobe_segmentation/segment.py b/brainglobe_segmentation/segment.py index bb9bded..2f15419 100644 --- a/brainglobe_segmentation/segment.py +++ b/brainglobe_segmentation/segment.py @@ -19,8 +19,6 @@ LOADING_PANEL_ALIGN, SEGM_METHODS_PANEL_ALIGN, TRACK_FILE_EXT, - WINDOW_HEIGHT, - WINDOW_WIDTH, ) from brainglobe_segmentation.paths import Paths from brainglobe_segmentation.regions.IO import ( @@ -560,16 +558,3 @@ def save_all( track_file_extension=track_file_extension, ) print("Finished!\n") - - -def main(): - print("Loading segmentation GUI.\n ") - with napari.gui_qt(): - viewer = napari.Viewer() # title="Segmentation GUI") - viewer.window.resize(WINDOW_WIDTH, WINDOW_HEIGHT) - widget = SegmentationWidget(viewer) - viewer.window.add_dock_widget(widget, name="General", area="right") - - -if __name__ == "__main__": - main()