Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def make_ratio_groups(self):
  2.  
  3. list_of_lists_of_tuples = []
  4. for part in whole:
  5. list_of_lists_of_tuples.append(some_object.list_of_tuples)
  6.  
  7. all_groups = itertools.product(*list_of_lists_of_tuples)
  8.  
  9. # Mapping and casting to list is necessary to put in the correct format for a subsequent function
  10. all_groups_list = list(map(list, all_groups))
  11.  
  12. return all_groups_list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement