Skip to content

Commit

Permalink
add more descriptions for the nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
wybert committed Nov 27, 2023
1 parent 2348a69 commit 7614222
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions knime_extension/src/nodes/spatialstatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,8 @@ def execute(self, exec_context: knext.ExecutionContext, input_1, input_2):
)
@knext.output_table(
name="Output Table",
description="Output table results of Bivariate Global Moran’s I",
description="Output table results of Bivariate Global Moran’s I"
+ __global_statistics_output_table_description,
)
# @knext.output_binary(
# name="output model",
Expand All @@ -1100,11 +1101,12 @@ def execute(self, exec_context: knext.ExecutionContext, input_1, input_2):
# )
@knext.output_view(
name="output view",
description="Output view of Bivariate Global Moran’s I",
description="Output view of Bivariate Global Moran’s I"
+ __global_statistics_interactive_view_description,
)
class BivariateGlobalMoran:
"""
Bivariate Global Moran’s I
Bivariate Global Moran’s I.
"""

# input parameters
Expand All @@ -1119,15 +1121,15 @@ class BivariateGlobalMoran:
id_col = get_id_col_parameter()

Field_col1 = knext.ColumnParameter(
"Field column 1",
"The column containing the field to use for the calculation of Bivariate Global Moran’s I.",
"Variable column 1",
"The column containing the variable to use for the calculation of Bivariate Global Moran’s I.",
column_filter=knut.is_numeric,
include_none_column=False,
)

Field_col2 = knext.ColumnParameter(
"Field column 2",
"The column containing the field to use for the calculation of Bivariate Global Moran’s I.",
"Variable column 2",
"The column containing the variable to use for the calculation of Bivariate Global Moran’s I.",
column_filter=knut.is_numeric,
include_none_column=False,
)
Expand Down Expand Up @@ -1201,7 +1203,9 @@ def execute(self, exec_context: knext.ExecutionContext, input_1, input_2):
)
@knext.output_table(
name="Output Table",
description="Output table results of Bivariate Local Moran Statistics",
description="Output table results of Bivariate Local Moran Statistics"
+ __local_statistics_output_table_description
+ __spots,
)
# @knext.output_binary(
# name="output model",
Expand Down Expand Up @@ -1229,15 +1233,15 @@ class BivariateLocalMoran:
id_col = get_id_col_parameter()

Field_col1 = knext.ColumnParameter(
"Field column 1",
"The column containing the field to use for the calculation of Bivariate Local Moran Statistics.",
"Variable column 1",
"The column containing the variable to use for the calculation of Bivariate Local Moran Statistics.",
column_filter=knut.is_numeric,
include_none_column=False,
)

Field_col2 = knext.ColumnParameter(
"Field column 2",
"The column containing the field to use for the calculation of Bivariate Local Moran Statistics.",
"Variable column 2",
"The column containing the variable to use for the calculation of Bivariate Local Moran Statistics.",
column_filter=knut.is_numeric,
include_none_column=False,
)
Expand Down

0 comments on commit 7614222

Please sign in to comment.