Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove command-line entry point and simplify pyproject.toml #185

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading