Skip to content

Commit 4800b9c

Browse files
Merge pull request #66 from clEsperanto/dev3
Dev3
2 parents 6769d38 + 6ad28bb commit 4800b9c

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

napari_pyclesperanto_assistant/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
from ._convert_to_numpy import *
33
from ._napari_cle_functions import *
44

5-
__version__ = "0.21.2"
5+
__version__ = "0.22.0"
66
__common_alias__ = "ncle"

napari_pyclesperanto_assistant/_advanced_statistics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from napari_tools_menu import register_function
66
import numpy as np
77

8-
@register_function(menu="Measurement > Statistics of labeled pixels including neighborhood statistics (deprecated, clEsperanto)")
8+
@register_function(menu="Measurement tables > Statistics of labeled pixels including neighborhood statistics (deprecated, clEsperanto)")
99
def advanced_statistics(
1010
intensity_image: napari.types.ImageData,
1111
label_image: napari.types.LabelsData,
@@ -122,4 +122,4 @@ def region_props_with_neighborhood_data(
122122
from napari_skimage_regionprops._all_frames import analyze_all_frames
123123

124124
regionprops_table_all_frames = analyze_all_frames(advanced_statistics)
125-
register_function(regionprops_table_all_frames, menu="Measurement > Statistics of labeled pixels including neighborhood statistics of all frames (clEsperanto)")
125+
register_function(regionprops_table_all_frames, menu="Measurement tables > Statistics of labeled pixels including neighborhood statistics of all frames (clEsperanto)")

napari_pyclesperanto_assistant/_napari_cle_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,14 @@ def binary_xor(labels1:"napari.types.LabelsData", labels2:"napari.types.LabelsDa
214214
return cle.binary_xor(labels1, labels2)
215215

216216

217-
@register_function(menu="Measurement > Extension ratio map (clesperanto)")
217+
@register_function(menu="Measurement maps > Extension ratio map (clesperanto)")
218218
@time_slicer
219219
@_package_ncle
220220
def extension_ratio_map(labels:"napari.types.LabelsData") -> "napari.types.ImageData":
221221
return cle.extension_ratio_map(labels)
222222

223223

224-
@register_function(menu="Measurement > Pixel count map (clesperanto)")
224+
@register_function(menu="Measurement maps > Pixel count map (clesperanto)")
225225
@time_slicer
226226
@_package_ncle
227227
def pixel_count_map(labels:"napari.types.LabelsData") -> "napari.types.ImageData":

napari_pyclesperanto_assistant/_neighborhood_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pyclesperanto_prototype as cle
44
from napari_tools_menu import register_function
55

6-
@register_function(menu="Measurement > Neighborhood statistics of measurements (clEsperanto)")
6+
@register_function(menu="Measurement tables > Neighborhood statistics of measurements (clEsperanto)")
77
def neighborhood_statistics(labels_layer: napari.layers.Labels,
88
touching_neighbors:bool = True,
99
neighbors_of_touching_neighbors:bool = True,

napari_pyclesperanto_assistant/_statistics_of_labeled_pixels.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from napari_skimage_regionprops._all_frames import analyze_all_frames
55
from napari_tools_menu import register_function
66

7-
@register_function(menu="Measurement > Label statistics (clEsperanto)")
7+
@register_function(menu="Measurement tables > Label statistics (clEsperanto)")
88
def label_statistics(intensity_image: "napari.types.ImageData",
99
label_image: "napari.types.LabelsData",
1010
intensity:bool = True,
@@ -65,14 +65,14 @@ def label_statistics(intensity_image: "napari.types.ImageData",
6565
warnings.warn("Image and labels must be set.")
6666

6767
regionprops_table_all_frames = analyze_all_frames(label_statistics)
68-
register_function(regionprops_table_all_frames, menu="Measurement > Label statistics of all frames (clEsperanto)")
68+
register_function(regionprops_table_all_frames, menu="Measurement tables > Label statistics of all frames (clEsperanto)")
6969

7070
def copy_keys(source, target, keys):
7171
for k in keys:
7272
target[k] = source[k]
7373

7474

75-
@register_function(menu="Measurement > Statistics of labeled pixels (deprecated, clEsperanto)")
75+
@register_function(menu="Measurement tables > Statistics of labeled pixels (deprecated, clEsperanto)")
7676
def statistics_of_labeled_pixels(image: "napari.types.ImageData", labels: "napari.types.LabelsData", measure_background=False, napari_viewer : "napari.Viewer"=None) -> "pandas.DataFrame":
7777
"""
7878
Adds a table widget to a given napari viewer with quantitative analysis results derived from an image-labelimage pair.
@@ -117,7 +117,7 @@ def statistics_of_labeled_pixels(image: "napari.types.ImageData", labels: "napar
117117
from morphometrics._gui._qt.measurement_widgets import QtMeasurementWidget
118118
register_dock_widget(
119119
QtMeasurementWidget,
120-
"Measurement > Region properties (morphometrics)"
120+
"Measurement tables > Region properties (morphometrics)"
121121
)
122122
except:
123123
pass

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pyopencl
33
toolz
44
scikit-image
55
napari >=0.4.15
6-
pyclesperanto-prototype >=0.21.1
6+
pyclesperanto-prototype >=0.22.0
77
magicgui
88
numpy!=1.19.4
99
pyperclip

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def read(fname):
3131
#use_scm = {"write_to": "napari_pyclesperanto_assistant/_version.py"}
3232
setup(
3333
name="napari_pyclesperanto_assistant",
34-
version="0.21.2",
34+
version="0.22.0",
3535
author="Robert Haase, Talley Lambert",
3636
author_email="robert.haase@tu-dresden.de",
3737
description="GPU-accelerated image processing in napari using OpenCL",

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ platform =
2222
passenv =
2323
CI
2424
GITHUB_ACTIONS
25-
DISPLAY XAUTHORITY
2625
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
2726
PYVISTA_OFF_SCREEN
2827
deps =

0 commit comments

Comments
 (0)