#NEWLINE# def test_number_of_cells( ) : #NEWLINE# #INDENT# ' Ensure create appropriate # of cells (despite ``discretization``) ' #NEWLINE# mapDir = os . path . join ( __rlpy_location__ , 'Domains' , 'GridWorldMaps' ) #NEWLINE# mapname = os . path . join ( mapDir , '4x5.txt' ) #NEWLINE# domain = GridWorld ( mapname = rep ) #NEWLINE# rep = IndependentDiscretization ( domain , discretization = 100 ) #NEWLINE# assert ( rep . features_num == 9 ) #NEWLINE# rep = IndependentDiscretization ( domain , discretization = 5 ) #NEWLINE# assert ( rep . features_num == 9 )