def connections(self): self._read_tilegrid() self._read_tileconn() self._read_tile_types() tile_wires = dict((tile_type, db['wires']) for tile_type, db in self.tile_types.items()) return connections.Connections(self.tilegrid, self.tileconn, tile_wires)
def connections(self): self._read_tilegrid() self._read_tileconn() return connections.Connections(self.tilegrid, self.tileconn, self._get_tile_wires())