group_template_conditions#
- group_template_conditions(conditions: list[dict], max_seeds: int) list[dict] [source]#
Create conditions groups obeying specified max seeds for each group.
- Parameters:
conditions – List of conditions, containing a unique “key” and “seed”.
max_seeds – Maximum number of total seeds in each group.
- Returns:
List of condition groups.
- group_seed_ranges(conditions: list[dict], max_seeds: int) list[dict] [source]#
Group conditions by continuous seed ranges.
- Parameters:
conditions – List of conditions, containing a unique “key” and “seed”.
max_seeds – Maximum number of seeds in a single range.
- Returns:
List of conditions updated with “start_seed” and “end_seed” ranges.
- find_seed_ranges(seeds: list[int], max_seeds: int) list[tuple[int, int]] [source]#
Find continuous seed ranges, with range no larger than specified max seeds.
- Parameters:
seeds – List of seeds.
max_seeds – Maximum number of seeds in a single range.
- Returns:
List of seeds grouped into ranges.
- group_condition_sets(conditions: list[dict], max_seeds: int) list[list[dict]] [source]#
Group conditions, with total seeds no larger than specified max seeds.
- Parameters:
conditions – List of conditions, containing a unique “key” with “start_seed” and “end_seed” ranges.
max_seeds – Maximum number of seeds in a single group.
- Returns:
List of groups of conditions.