Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-gao-GY committed Dec 6, 2023
1 parent 6ca69aa commit 0882da0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/xgboost-comprehensive/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,12 @@ def sample(
criterion: Optional[Criterion] = None,
) -> List[ClientProxy]:
"""Sample a number of Flower ClientProxy instances."""

# Block until at least num_clients are connected.
if min_num_clients is None:
min_num_clients = num_clients
self.wait_for(min_num_clients)

# Sample clients which meet the criterion
available_cids = list(self.clients)
if criterion is not None:
Expand Down

0 comments on commit 0882da0

Please sign in to comment.