~wecacuee/mrol/mrol-dev

« back to all changes in this revision

Viewing changes to mrol_mapping/util.py

  • Committer: Vikas Dhiman
  • Date: 2012-05-22 15:26:38 UTC
  • Revision ID: wecacuee@gmail.com-20120522152638-j6srlkgrpdq4kdfe
Added support for userdata in terms of colored voxels. Added benchmark test and corresponding data

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    # it part of the public api of occupiedlist?
53
53
    occupiedlist._pack(inds)
54
54
    # This introduces a systematic error as inds_unique is just the first index encountered.
55
 
    ids_unique, inds_unique = np.unique1d(inds, return_index=True)
 
55
    ids_unique, inds_unique = np.unique(inds, return_index=True)
56
56
    if return_inds:
57
57
        return P[inds_unique], inds_unique
58
58
    else: