Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Add check
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Feb 16, 2024
1 parent cfe127c commit 61738c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ def print(x):
)
else:
# Use pre-made parallelization_list
list_function_kwargs = parallelization_list
for ind, _ in enumerate(list_function_kwargs):
# FIXME: error or warning in case of overlapping keys
list_function_kwargs = deepcopy(parallelization_list)
for ind, kwargs in enumerate(list_function_kwargs):
if "root_dir" in kwargs or "buffer" in kwargs:
raise ValueError(f"Invalid {kwargs=}")
list_function_kwargs[ind].update(
dict(
root_dir=tmp_dataset.root_dir,
Expand Down

0 comments on commit 61738c4

Please sign in to comment.