parameters: (self, id_lane, lanes)
return_statement: return None, None
docstring: Makes pedestrian lane accessible for bikes.
docstring_summary: Makes pedestrian lane accessible for bikes.
docstring_tokens: Makes pedestrian lane accessible for bikes .
function: def _make_bike_on_ped(self, id_lane, lanes):
          """
          Makes pedestrian lane accessible for bikes.
          """
          ids_modes_allow = set(lanes.ids_modes_allow[id_lane])
          # print '_make_bike_on_ped id_lane',id_lane,ids_modes_allow,len(ids_modes_allow)
          # are modes a subset of modes to be updated?
          if ids_modes_allow.issubset(self.ids_modes_tocomplete):
              # add bike mode
              ids_modes_allow.update([self.id_mode_bike])
              lanes.ids_modes_allow[id_lane] = list(ids_modes_allow)
              return lanes.ids_modes_allow[id_lane], lanes.widths[id_lane]
  
          return None, None
function_tokens: def _make_bike_on_ped ( self , id_lane , lanes ) : ids_modes_allow = set ( lanes . ids_modes_allow [ id_lane ] ) # print '_make_bike_on_ped id_lane',id_lane,ids_modes_allow,len(ids_modes_allow) # are modes a subset of modes to be updated? if ids_modes_allow . issubset ( self . ids_modes_tocomplete ) : # add bike mode ids_modes_allow . update ( [ self . id_mode_bike ] ) lanes . ids_modes_allow [ id_lane ] = list ( ids_modes_allow ) return lanes . ids_modes_allow [ id_lane ] , lanes . widths [ id_lane ] return None , None