Skip to content

Commit

Permalink
Remove command-line entry point and simplify pyproject.toml (#185)
Browse files Browse the repository at this point in the history
* Simplify pyproject.toml

* Remove command line entry point and associated constants
  • Loading branch information
adamltyson authored Jul 17, 2024
1 parent f216fa5 commit 9bbff0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions brainglobe_segmentation/layout/gui_constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Constants used throughout
WINDOW_HEIGHT = 750
WINDOW_WIDTH = 1500
COLUMN_WIDTH = 150

DISPLAY_REGION_INFO = (
Expand Down
15 changes: 0 additions & 15 deletions brainglobe_segmentation/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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()
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,7 @@ dev = [
]

[project.entry-points."napari.manifest"]
cellfinder-napari = "brainglobe_segmentation:napari.yaml"

[project.scripts]
brainglobe-segmentation = "brainglobe_segmentation.segment:main"

[project.entry-points."napari.plugin"]
brainglobe-segmentation = "brainglobe_segmentation.plugins"
brainglobe-segmentation = "brainglobe_segmentation:napari.yaml"

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
Expand Down

0 comments on commit 9bbff0b

Please sign in to comment.