Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bluemath_tk/core/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def wrapper(
normalize_target_data: bool = True,
target_custom_scale_factor: dict = {},
num_threads: int = None,
iteratively_update_sigma: bool = False,
):
if subset_data is None:
raise ValueError("Subset data cannot be None")
Expand Down Expand Up @@ -306,6 +307,8 @@ def wrapper(
if num_threads is not None:
if not isinstance(num_threads, int) or num_threads <= 0:
raise ValueError("Number of threads must be integer and > 0")
if not isinstance(iteratively_update_sigma, bool):
raise TypeError("Iteratively update sigma must be a boolean")
return func(
self,
subset_data,
Expand All @@ -316,6 +319,7 @@ def wrapper(
normalize_target_data,
target_custom_scale_factor,
num_threads,
iteratively_update_sigma,
)

return wrapper
Loading
Loading