def connect_ramps():
	for _slice in WORLD_INFO['slices']:
		for x,y,z in WORLD_INFO['slices'][_slice]['ramps']:
			for _matched_slice in get_slices_at_z(z):
				if 0 > _matched_slice['map'][x][y]:
					if not _matched_slice['map'][x][y] in WORLD_INFO['slices'][_slice]['neighbors']:
						WORLD_INFO['slices'][_slice]['neighbors'][_matched_slice['map'][x][y]] = [(x, y)]
					elif not (x, y) in WORLD_INFO['slices'][_slice]['neighbors'][_matched_slice['map'][x][y]]:
						WORLD_INFO['slices'][_slice]['neighbors'][_matched_slice['map'][x][y]].append((x, y))
						
	for _slice in WORLD_INFO['slices']:
		print 'Zone %s' % _slice, '@ z-level',WORLD_INFO['slices'][_slice]['z']
		for neighbor in WORLD_INFO['slices'][_slice]['neighbors']:
			print '\tNeighbor:', neighbor, '(%s ramps)' % len(WORLD_INFO['slices'][_slice]['neighbors'][neighbor])
		
		#print WORLD_INFO['slices'][_slice]['neighbors'].keys()
		
		if not WORLD_INFO['slices'][_slice]['neighbors']:
			print '\tNo neighbors.'
dataset/ETHPy150Open flags/Reactor-3/tests/M06_zonepath.py/connect_ramps/swapped operands of `>`