~mrol-dev/mrol/trunk

« back to all changes in this revision

Viewing changes to mrol_mapping/occupiedlist.py

  • Committer: Vikas Dhiman
  • Date: 2012-03-12 19:10:56 UTC
  • Revision ID: wecacuee@gmail.com-20120312191056-31xyar8xpyhwgxwb
Fixed doc test in occupancy_list.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
        Sets the specified voxel indices to the occupancies given.
304
304
 
305
305
        >>> ol = OccupiedList(0.1)
306
 
        >>> inds = ((1,2,3), )
 
306
        >>> inds = np.array(((1,2,3), ))
307
307
        >>> ol.set_occupancies(inds, (1,2))
308
308
        >>> ol
309
309
        [[1 2 3 1]]
329
329
        Getting empty voxels should not change ol
330
330
        
331
331
        >>> ol = OccupiedList(0.1)
332
 
        >>> ol.get_occupancies( ((1,2,3),) )
 
332
        >>> ol.get_occupancies( np.array(((1,2,3),)) )
333
333
        array([0])
334
334
        >>> len(ol)
335
335
        0