Grouping
Chunk sequences of points.
-
storylines.group.groups(iterable, size=4)[source]
Group sequence of objects into chunks of given size.
- Parameters:
- iterableiterable
Iterable sequence of objects.
- sizeint
Group size.
- Yields:
- list
Group of objects.
-
storylines.group.islands(N, criterion, join=False)[source]
Select subranges of integer range.
- Parameters:
- Ninteger
Length of original range.
- criterionfunction
Selection criterion for range members.
- joinbool
Concatenate all subranges?
- Yields:
- list of int
Elements of subrange.