Skip to content

Commit

Permalink
split_strategy_kwargs can be None
Browse files Browse the repository at this point in the history
  • Loading branch information
cwindolf committed Feb 2, 2024
1 parent ed200ef commit 1165203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dartsort/cluster/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,8 @@ def __init__(self, split_strategy):
def _split_job_init(split_strategy_class_name, split_strategy_kwargs):
global _split_job_context
split_strategy = split_strategies_by_class_name[split_strategy_class_name]
if split_strategy_kwargs is None:
split_strategy_kwargs = {}
_split_job_context = SplitJobContext(split_strategy(**split_strategy_kwargs))


Expand Down

0 comments on commit 1165203

Please sign in to comment.