Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import hyperchamber as hc
class SkipConnections:
def __init__(self):
self.connections = {}
def get(self, name, shape=None):
conns = hc.Config(self.connections)
conns = conns.name or []
for con in conns:
if con[0] == shape:
return con[1]
return None
def set(self, name, value, shape = None):
if not hasattr(self.connections, name):
self.connections[name] = []
self.connections[name].append([shape, value])