#NEWLINE# def reset( self , mode ) : #NEWLINE# #INDENT# ' Reset environment for a new episode.\n\n        Arguments:\n            mode - whether we are in test mode or train mode\n        ' #NEWLINE# if ( mode == ( - 1 ) ) : #NEWLINE# #INDENT# self . prices = self . _priceSignalTrain #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . prices = mode . _priceSignalValid #NEWLINE# #UNINDENT# self . _lastPonctualObservation = [ self . prices [ 0 ] , 0 ] #NEWLINE# self . _counter = 1 #NEWLINE# return [ [ 0 , 0 , 0 , 0 , 0 , 0 ] , 0 ]