Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def make_ratio_groups(self):
- list_of_lists_of_tuples = []
- for part in whole:
- list_of_lists_of_tuples.append(some_object.list_of_tuples)
- all_groups = itertools.product(*list_of_lists_of_tuples)
- # Mapping and casting to list is necessary to put in the correct format for a subsequent function
- all_groups_list = list(map(list, all_groups))
- return all_groups_list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement