parameters: (self, layerList=None, strict=False)
return_statement: return batch
docstring: returns the next batch of data
          
          :param list layerList: The list of layers for which to return data. If None, will return for all layers.
          :param bool strict: Will raise a KeyError exception if a layer from the list has no associated map, default behaviour is to ignore it.
docstring_summary: returns the next batch of data
          
          :param list layerList: The list of layers for which to return data. If None, will return for all layers.
          :param bool strict: Will raise a KeyError exception if a layer from the list has no associated map, default behaviour is to ignore it.
docstring_tokens: returns the next batch of data : param list layerList : The list of layers for which to return data . If None will return for all layers . : param bool strict : Will raise a KeyError exception if a layer from the list has no associated map default behaviour is to ignore it .
function: def next(self, layerList=None, strict=False) :
          """returns the next batch of data
          
          :param list layerList: The list of layers for which to return data. If None, will return for all layers.
          :param bool strict: Will raise a KeyError exception if a layer from the list has no associated map, default behaviour is to ignore it.
  
          """
          if self.miniBatchSize is None :
              if self.batchNumber > 0 :
                  self.batchNumber = 0
                  self.epochNumber += 1
                  self.reroll()
                  raise StopIteration("That was the last batch")
  
              batch = self.getAll(layerList, strict)
          else :
              try :
                  batch = self.getBatch(self.batchNumber*self.miniBatchSize, self.miniBatchSize, layerList, strict)
              except IndexError :
                  self.batchNumber = 0
                  self.epochNumber += 1
                  self.reroll()
                  raise StopIteration("That was the last batch")
                  
          self.batchNumber += 1
          return batch
function_tokens: def next ( self , layerList = None , strict = False ) : if self . miniBatchSize is None : if self . batchNumber > 0 : self . batchNumber = 0 self . epochNumber += 1 self . reroll ( ) raise StopIteration ( "That was the last batch" ) batch = self . getAll ( layerList , strict ) else : try : batch = self . getBatch ( self . batchNumber * self . miniBatchSize , self . miniBatchSize , layerList , strict ) except IndexError : self . batchNumber = 0 self . epochNumber += 1 self . reroll ( ) raise StopIteration ( "That was the last batch" ) self . batchNumber += 1 return batch