def test_number_of_cells():
    mapDir = os.path.join(__rlpy_location__, "Domains", "GridWorldMaps")
    mapname=os.path.join(mapDir, "4x5.txt") # expect 4*5 = 20 states
    domain = GridWorld(mapname=mapname)
    
    rep = IndependentDiscretization(domain, discretization=100)
    assert rep.features_num == 9
    rep = IndependentDiscretization(domain, discretization=5)
    assert rep.features_num == 9
Expands an item.
dataset/ETHPy150Open rlpy/rlpy/tests/test_representations/test_IndependentDiscretization.py/test_number_of_cells--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tree.py/Tree.expandItem