Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersson committed Oct 11, 2023
1 parent 5e3c0c2 commit 4bf557b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepsensor/data/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,9 @@ def sample_variable(var, sampling_strat, seed):
context_sampling[context_idx],
target_sampling[target_idx],
)
if any([strat == _ for _ in ["split", "gapfill"] for strat in link_strats]):
if any(
[strat == _ for _ in ["split", "gapfill"] for strat in link_strats]
):
# If one of the sampling strategies is "split" or "gapfill", the other must
# use the same splitting strategy
if link_strats[0] != link_strats[1]:
Expand Down

0 comments on commit 4bf557b

Please sign in to comment.