Skip to content

Commit 88a642a

Browse files
authored
Update decorators.py first centroid seed
When the option for the first centroid is used, the maximum value is still returned. This occurs because, in the validate_data_mda function of decorators.py, the value of first_centroid_seed is not properly referenced in the final return.
1 parent 121f47d commit 88a642a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluemath_tk/core/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def wrapper(
9090
raise ValueError(
9191
"First centroid seed must be an integer >= 0 and < num of data points"
9292
)
93-
return func(self, data, directional_variables, custom_scale_factor)
93+
return func(self, data, directional_variables, custom_scale_factor, first_centroid_seed)
9494

9595
return wrapper
9696

0 commit comments

Comments
 (0)