Skip to content

Commit

Permalink
move qtpy utilities to brainglobe-utils (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson authored Jan 16, 2024
1 parent 422da56 commit cf79319
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 137 deletions.
94 changes: 0 additions & 94 deletions brainglobe_segmentation/layout/gui_elements.py

This file was deleted.

29 changes: 0 additions & 29 deletions brainglobe_segmentation/layout/utils.py

This file was deleted.

4 changes: 2 additions & 2 deletions brainglobe_segmentation/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

import napari
import numpy as np
from brainglobe_utils.qtpy.dialog import display_warning
from brainglobe_utils.qtpy.interaction import add_button
from napari.qt.threading import thread_worker
from qtpy import QtCore
from qtpy.QtWidgets import QFileDialog, QGridLayout, QGroupBox, QLabel, QWidget
Expand All @@ -19,8 +21,6 @@
WINDOW_HEIGHT,
WINDOW_WIDTH,
)
from brainglobe_segmentation.layout.gui_elements import add_button
from brainglobe_segmentation.layout.utils import display_warning
from brainglobe_segmentation.paths import Paths
from brainglobe_segmentation.regions.IO import (
export_label_layers,
Expand Down
7 changes: 2 additions & 5 deletions brainglobe_segmentation/segmentation_panels/regions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from brainglobe_utils.qtpy.dialog import display_info, display_warning
from brainglobe_utils.qtpy.interaction import add_button, add_checkbox
from qtpy.QtWidgets import QGridLayout, QGroupBox

from brainglobe_segmentation.layout.gui_constants import (
Expand All @@ -10,11 +12,6 @@
SEGM_METHODS_PANEL_ALIGN,
SUMMARIZE_VOLUMES_DEFAULT,
)
from brainglobe_segmentation.layout.gui_elements import (
add_button,
add_checkbox,
)
from brainglobe_segmentation.layout.utils import display_info, display_warning
from brainglobe_segmentation.regions.analysis import region_analysis
from brainglobe_segmentation.regions.layers import (
add_existing_region_segmentation,
Expand Down
14 changes: 7 additions & 7 deletions brainglobe_segmentation/segmentation_panels/tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
from glob import glob

import numpy as np
from brainglobe_utils.qtpy.dialog import display_info, display_warning
from brainglobe_utils.qtpy.interaction import (
add_button,
add_checkbox,
add_float_box,
add_int_box,
)
from qtpy.QtWidgets import QGridLayout, QGroupBox

from brainglobe_segmentation.image.utils import create_KDTree_from_image
Expand All @@ -17,13 +24,6 @@
SUMMARISE_TRACK_DEFAULT,
TRACK_FILE_EXT,
)
from brainglobe_segmentation.layout.gui_elements import (
add_button,
add_checkbox,
add_float_box,
add_int_box,
)
from brainglobe_segmentation.layout.utils import display_info, display_warning
from brainglobe_segmentation.tracks.analysis import track_analysis
from brainglobe_segmentation.tracks.layers import (
add_existing_track_layers,
Expand Down

0 comments on commit cf79319

Please sign in to comment.