#NEWLINE# def __getitem__( self , slc ) : #NEWLINE# #INDENT# '\n        Provides a convenient interface to override the\n        range and samples parameters of the Cycle.\n        Supplying a slice step or index overrides the\n        number of samples. Unsupplied slice values will be\n        inherited.\n        ' #NEWLINE# ( ( start , stop ) , step ) = ( self . range , self . samples ) #NEWLINE# if isinstance ( slc , slice ) : #NEWLINE# #INDENT# if ( slc . start is not None ) : #NEWLINE# #INDENT# start = slc . start #NEWLINE# #UNINDENT# if ( slc . stop is not None ) : #NEWLINE# #INDENT# stop = slc . stop #NEWLINE# #UNINDENT# if ( slc . step is not None ) : #NEWLINE# #INDENT# step = slc . step #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# step = slc #NEWLINE# #UNINDENT# return self ( range = ( start , stop ) , samples = step )