parameters: (self, is_route=False, is_plain=False, **kwargs)
docstring: Returns three array where the first array is the 
          begin time of the first vehicle and the second array is the
          write function to be called for the respectice vehicle and
          the third array contains the vehicle ids
  
          Method used to sort trips when exporting to route or trip xml file
docstring_summary: Returns three array where the first array is the 
          begin time of the first vehicle and the second array is the
          write function to be called for the respectice vehicle and
          the third array contains the vehicle ids
docstring_tokens: Returns three array where the first array is the begin time of the first vehicle and the second array is the write function to be called for the respectice vehicle and the third array contains the vehicle ids
function: def get_writexmlinfo(self, is_route=False, is_plain=False, **kwargs):
          """
          Returns three array where the first array is the 
          begin time of the first vehicle and the second array is the
          write function to be called for the respectice vehicle and
          the third array contains the vehicle ids
  
          Method used to sort trips when exporting to route or trip xml file
          """
          # print 'PtLines.get_writexmlinfo is_route, is_plain',is_route, is_plain,len(self)
          n = len(self)
          ids = self.get_ids()
          #
          if is_plain:
              ids_run = []
              times_begin_run = []
              # print '  ids',ids,
              # print '  times_begin',self.times_begin[ids]
              # print '  times_end',self.times_end[ids]
              # print '  periods',self.periods[ids]
              for id_line, time_begin, time_end, period in zip(ids, self.times_begin[ids], self.times_end[ids], self.periods[ids]):
                  # print '    id_line, time_begin,time_end, period',id_line, time_begin,time_end, period
                  i_run = 0
                  for t_begin in np.arange(time_begin, time_end, period):
                      # print '  append (id_line,i_run)',(id_line,i_run),'t_begin',t_begin
                      ids_run.append((id_line, i_run))
                      times_begin_run.append(t_begin)
                      i_run += 1
  
              return times_begin_run, len(ids_run)*[self.write_run_xml], ids_run
  
          else:
              return self.times_begin[ids], n*[self.write_flow_xml], ids
function_tokens: def get_writexmlinfo ( self , is_route = False , is_plain = False , * * kwargs ) : # print 'PtLines.get_writexmlinfo is_route, is_plain',is_route, is_plain,len(self) n = len ( self ) ids = self . get_ids ( ) # if is_plain : ids_run = [ ] times_begin_run = [ ] # print '  ids',ids, # print '  times_begin',self.times_begin[ids] # print '  times_end',self.times_end[ids] # print '  periods',self.periods[ids] for id_line , time_begin , time_end , period in zip ( ids , self . times_begin [ ids ] , self . times_end [ ids ] , self . periods [ ids ] ) : # print '    id_line, time_begin,time_end, period',id_line, time_begin,time_end, period i_run = 0 for t_begin in np . arange ( time_begin , time_end , period ) : # print '  append (id_line,i_run)',(id_line,i_run),'t_begin',t_begin ids_run . append ( ( id_line , i_run ) ) times_begin_run . append ( t_begin ) i_run += 1 return times_begin_run , len ( ids_run ) * [ self . write_run_xml ] , ids_run else : return self . times_begin [ ids ] , n * [ self . write_flow_xml ] , ids