Skip to content

Commit

Permalink
Merge pull request #1 from haesleinhuepf/fix-plugin-func
Browse files Browse the repository at this point in the history
set destination parameters to None per default
  • Loading branch information
tlambert03 authored Jan 12, 2021
2 parents 7f9ed16 + 3e365f1 commit 2333f21
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .._tier0 import Image

@plugin_function
def maximum_of_touching_neighbors(values : Image, touch_matrix : Image, maximum_values_destination : Image):
def maximum_of_touching_neighbors(values : Image, touch_matrix : Image, maximum_values_destination : Image = None):
"""Takes a touch matrix and a vector of values to determine the maximum
value among touching neighbors for every object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .._tier0 import Image

@plugin_function
def mean_of_touching_neighbors(values : Image, touch_matrix : Image, mean_values_destination : Image):
def mean_of_touching_neighbors(values : Image, touch_matrix : Image, mean_values_destination : Image = None):
"""Takes a touch matrix and a vector of values to determine the mean value
among touching neighbors for every object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .._tier0 import Image

@plugin_function
def median_of_touching_neighbors(values : Image, touch_matrix : Image, median_values_destination : Image):
def median_of_touching_neighbors(values : Image, touch_matrix : Image, median_values_destination : Image = None):
"""Takes a touch matrix and a vector of values to determine the median
value among touching neighbors for every object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .._tier0 import Image

@plugin_function
def minimum_of_touching_neighbors(values : Image, touch_matrix : Image, minimum_values_destination : Image):
def minimum_of_touching_neighbors(values : Image, touch_matrix : Image, minimum_values_destination : Image = None):
"""Takes a touch matrix and a vector of values to determine the minimum
value among touching neighbors for every object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .._tier0 import Image

@plugin_function
def mode_of_touching_neighbors(src_values : Image, touch_matrix : Image, dst_values : Image):
def mode_of_touching_neighbors(src_values : Image, touch_matrix : Image, dst_values : Image = None):
"""
Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .._tier0 import Image

@plugin_function
def standard_deviation_of_touching_neighbors(values : Image, touch_matrix : Image, standard_deviation_values_destination : Image):
def standard_deviation_of_touching_neighbors(values : Image, touch_matrix : Image, standard_deviation_values_destination : Image = None):
"""Takes a touch matrix and a vector of values to determine the standard
deviation value among touching neighbors for every object.
Expand Down

0 comments on commit 2333f21

Please sign in to comment.