code: def getResetsIndices(networkDataFile):
      
      try:
        with open(networkDataFile) as f:
          reader = csv.reader(f)
          next(reader, None)
          next(reader, None)
          resetIdx = next(reader).index("R")
  
          resets = []
          for i, line in enumerate(reader):
            if int(line[resetIdx]) == 1:
              resets.append(i)
          return resets
  
      except IOError as e:
        print "Could not open the file {}.".format(networkDataFile)
        raise e
docs: Returns the indices at which the data sequences reset.