All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
LVDSpatterns Namespace Reference

Classes

class  Pattern
 

Functions

def countElements
 

Variables

list MainPattern
 
int NChannels = 360
 
tuple ChannelsPerPattern = countElements(MainPattern)
 
tuple pattern = Pattern(MainPattern, offset)
 

Function Documentation

def LVDSpatterns.countElements (   pattern)

Definition at line 97 of file LVDSpatterns.py.

97 
98 def countElements(pattern):
99  c = 0
100  for orig in pattern:
101  c += countElements(orig) if isinstance(orig, list) else 1
102  return c
103 # countElements()
104 
105 
# ------------------------------------------------------------------------------

Variable Documentation

tuple LVDSpatterns.ChannelsPerPattern = countElements(MainPattern)

Definition at line 108 of file LVDSpatterns.py.

list LVDSpatterns.MainPattern
Initial value:
1 = [
2  [
3  [ 0, 2, ],
4  [ 1, 4, ],
5  [ 3, 6, ],
6  [ 5, 8, ],
7  [ 7, 9, ],
8  [ 10, 12, ],
9  [ 11, 14, ],
10  [ 13 ],
11  ],
12  [
13  [ 15, 18, ],
14  [ 16 ],
15  [ 17, 19, ],
16  [ 20, 22, ],
17  [ 21, 24, ],
18  [ 23, 26, ],
19  [ 25, 28, ],
20  [ 27, 29, ],
21  ],
22 ]

Definition at line 34 of file LVDSpatterns.py.

int LVDSpatterns.NChannels = 360

Definition at line 57 of file LVDSpatterns.py.

tuple LVDSpatterns.pattern = Pattern(MainPattern, offset)

Definition at line 112 of file LVDSpatterns.py.